Function at 0x407250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4244b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x4341f8]
mov dword [ebp - 0x20], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x430], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x407318
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
cmp edi, 0x400
jg 0x4072d2
push edi
call fcn.00401350
add esp, 4
test al, al
je 0x4072d2
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00422260
mov dword [ebp - 0x10], esp
mov esi, esp
jmp 0x4072f1
lea eax, [edi + 8]
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
test eax, eax
je 0x407318
mov dword [eax], 0
mov ebx, eax
mov dword [ebp - 0x14], ebx
lea esi, [eax + 8]
test esi, esi
je 0x407318
mov byte [esi], 0
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40731a
xor eax, eax
test eax, eax
jne 0x40736b
mov byte [ebp - 4], al
lea eax, [ebp - 0x42c]
cmp dword [ebp - 0x430], eax
je 0x40733a
lea ecx, [ebp - 0x430]
call fcn.00402b30
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x407361
mov esi, dword [sym.imp.MSVCR71.dll_free]
jmp 0x407350
mov eax, ebx
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
push eax
call esi
add esp, 4
test ebx, ebx
jne 0x407350
mov eax, 0x8007000e
jmp 0x407493
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x40738b
call fcn.00401650
mov edi, eax
jmp 0x40744d
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4073aa
call fcn.00401650
jmp 0x407444
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4073c3
call fcn.00401650
jmp 0x407444
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x430]
call fcn.00405410
jmp 0x4073f4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x430]
test eax, eax
jne 0x40740c
mov edi, 0x8007000e
jmp 0x407446
mov ecx, edi
mov esi, dword [ebp - 0x24]
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x430]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406790
mov esi, dword [ebp - 0x1c]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
cmp dword [ebp - 0x430], ecx
je 0x40746a
lea ecx, [ebp - 0x430]
call fcn.00402b30
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x407491
mov esi, dword [sym.imp.MSVCR71.dll_free]
jmp 0x407480
mov eax, ebx
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
push eax
call esi
add esp, 4
test ebx, ebx
jne 0x407480
mov eax, edi
lea esp, [ebp - 0x43c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10