Function at 0x402910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x40d724]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x20], edi
mov eax, dword [edi + 0x60]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 0x18], eax
call sub.mfc90.dll_Ordinal_1137
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x58]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x40297f
push 5
push eax
call sub.mfc90.dll_Ordinal_1108
mov edx, dword [edi + 0x58]
push 5
mov esi, eax
push edx
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402ae6
cmp byte [edi + 0x88], 0
je 0x402ad8
cmp dword [0x40d850], 0
jne 0x402a8d
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0x320
jge 0x4029f4
mov eax, dword [str.Ms_Sans_Serif]
mov ecx, dword [0x4090b4]
mov edx, dword [0x4090b8]
mov dword [0x40d7e8], eax
mov ax, word [0x4090bc]
mov dword [0x40d850], 8
mov dword [0x40d854], 0x48
mov dword [0x40d7ec], ecx
mov dword [0x40d7f0], edx
mov word [0x40d7f4], ax
jmp 0x402a36
mov ecx, dword [str.Times_New_Roman]
mov edx, dword [0x4090a4]
mov eax, dword [0x4090a8]
mov dword [0x40d7e8], ecx
mov ecx, dword [0x4090ac]
mov dword [0x40d850], 0xb
mov dword [0x40d854], 0x64
mov dword [0x40d7ec], edx
mov dword [0x40d7f0], eax
mov dword [0x40d7f4], ecx
mov esi, 0x40909c
call sub.CNC_connect.dll_CNC_connect_query_lang
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x402a60
test cl, cl
je 0x402a5c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x402a60
add eax, 2
add esi, 2
test cl, cl
jne 0x402a40
xor eax, eax
jmp 0x402a65
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402a8d
mov edx, dword [str.Ms_Mincho]
mov eax, dword [0x409094]
mov cx, word [0x409098]
mov dword [0x40d7e8], edx
mov dword [0x40d7ec], eax
mov word [0x40d7f0], cx
push 0
lea ecx, [ebp - 0x44]
call sub.mfc90.dll_Ordinal_379
mov edx, dword [edi + 0x58]
push edx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call sub.mfc90.dll_Ordinal_4399
movzx eax, word [0x40d850]
push eax
push 0x40d7e8
lea ecx, [ebp - 0x44]
call sub.mfc90.dll_Ordinal_6294
lea ecx, [ebp - 0x44]
call sub.mfc90.dll_Ordinal_2142
lea ecx, [ebp - 0x44]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call sub.mfc90.dll_Ordinal_641
test esi, esi
je 0x402ae6
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402b01
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call sub.mfc90.dll_Ordinal_5618
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call sub.mfc90.dll_Ordinal_1266
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], esi
cmp ebx, esi
je 0x402b8c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x402b8c
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x402b8c
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, 1
mov dword [ebp - 0x28], esi
call sub.mfc90.dll_Ordinal_1144
test eax, eax
je 0x402c03
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x7c]
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x402b8c
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x130]
call eax
test eax, eax
je 0x402b8c
mov ecx, dword [ebp - 0x14]
call sub.mfc90.dll_Ordinal_4384
test eax, eax
je 0x402b8c
mov ecx, dword [ebp - 0x14]
push 0
call sub.mfc90.dll_Ordinal_2360
mov dword [ebp - 0x24], esi
lea ecx, [ebp - 0x38]
call sub.mfc90.dll_Ordinal_320
mov dword [ebp - 4], 1
push edi
mov byte [ebp - 4], 2
call sub.mfc90.dll_Ordinal_1149
push ebx
call sub.mfc90.dll_Ordinal_2592
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push eax
push edx
mov ecx, edi
call sub.mfc90.dll_Ordinal_1765
test eax, eax
je 0x402c2d
test byte [edi + 0x3c], 0x10
je 0x402be5
mov ecx, edi
mov esi, 4
call sub.mfc90.dll_Ordinal_3730
test eax, 0x100
je 0x402bdd
mov esi, 5
push esi
mov ecx, edi
call sub.mfc90.dll_Ordinal_6005
cmp dword [edi + 0x20], 0
je 0x402c2d
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, edi
call sub.mfc90.dll_Ordinal_6557
jmp 0x402c2d
mov dword [ebp - 0x14], 0
jmp 0x402b8c
mov dword [ebp - 4], 0xffffffff
call sub.mfc90.dll_Ordinal_1265
cmp dword [ebp - 0x24], 0
je 0x402c49
mov ecx, dword [ebp - 0x14]
push 1
call sub.mfc90.dll_Ordinal_2360
cmp dword [ebp - 0x28], 0
je 0x402c58
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x402c6e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x402c6e
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov ecx, edi
call sub.mfc90.dll_Ordinal_5575
mov eax, dword [edi + 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret