Function at 0x40df70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dcb6
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x5b7f60]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], ecx
xor esi, esi
mov dword [ebp - 0x428], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x424], esi
mov byte [ebp - 4], 1
cmp ebx, esi
je 0x40e08f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdq
mov esi, eax
shld edx, esi, 1
add esi, esi
mov eax, esi
add eax, 0x80000000
adc edx, edi
mov dword [ebp - 0x438], edx
jne 0x40e087
cmp eax, 0xffffffff
ja 0x40e087
cmp esi, 0x400
jg 0x40e02c
push esi
call fcn.0040cb20
add esp, 4
test al, al
je 0x40e02c
mov eax, esi
call fcn.00534b70
mov dword [ebp - 0x10], esp
mov edi, esp
jmp 0x40e059
or eax, 0xffffffff
sub eax, esi
cmp eax, 8
jb 0x40e16c
lea eax, [esi + 8]
push eax
call fcn.00533134
add esp, 4
test eax, eax
je 0x40e087
mov dword [eax], 0
mov dword [ebp - 0x428], eax
lea edi, [eax + 8]
test edi, edi
je 0x40e081
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [ebp - 0x428]
jmp 0x40e089
mov edi, dword [ebp - 0x428]
xor eax, eax
test eax, eax
jne 0x40e0d5
xor esi, esi
lea ecx, [ebp - 0x420]
cmp dword [ebp - 0x424], ecx
je 0x40e0a8
lea eax, [ebp - 0x424]
call fcn.0040c160
cmp edi, esi
je 0x40e0cb
jmp 0x40e0b6
mov edi, dword [ebp - 0x428]
mov esi, dword [edi]
push edi
mov dword [ebp - 0x428], esi
call fcn.0053241b
add esp, 4
test esi, esi
jne 0x40e0b0
mov eax, 0x8007000e
jmp 0x40e260
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp - 0x438], ebx
test ebx, ebx
jne 0x40e0f8
call fcn.0040c180
mov ebx, eax
jmp 0x40e224
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x430]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40e11d
call fcn.0040c180
jmp 0x40e211
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x40e139
call fcn.0040c180
jmp 0x40e211
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x430], esi
cmp eax, esi
jae 0x40e15f
mov dword [ebp - 0x428], 0x8007000e
jmp 0x40e217
xor ecx, ecx
mov byte [ebp - 4], 2
ja 0x40e16c
cmp eax, 0xffffffff
jbe 0x40e176
push 0x80070216
call fcn.00406540
cmp eax, 0x400
jbe 0x40e1b7
lea ecx, [ebp - 0x424]
push ecx
call fcn.0040cc70
jmp 0x40e1c3
lea edx, [ebp - 0x420]
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x424]
test eax, eax
jne 0x40e1e0
mov dword [ebp - 0x428], 0x8007000e
jmp 0x40e217
mov ecx, dword [ebp - 0x42c]
push esi
push ecx
push esi
push eax
call fcn.004017e0
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov byte [edx + esi], 0
mov edx, dword [ebp - 0x424]
push eax
lea ecx, [ebp - 0x444]
call fcn.0040dde0
mov dword [ebp - 0x428], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x428]
lea ecx, [ebp - 0x420]
cmp dword [ebp - 0x424], ecx
je 0x40e23d
lea eax, [ebp - 0x424]
call fcn.0040c160
test edi, edi
je 0x40e25e
jmp 0x40e249
mov edi, dword [ebp - 0x428]
mov esi, dword [edi]
push edi
mov dword [ebp - 0x428], esi
call fcn.0053241b
add esp, 4
test esi, esi
jne 0x40e243
mov eax, ebx
lea esp, [ebp - 0x45c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005319a6
mov esp, ebp
pop ebp
ret 0xc