Function at 0x407bd9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x472cad
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a9068]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0x414]
xor ebx, ebx
mov eax, dword [ebp + 0x410]
mov esi, ebx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x407dde
push eax
call fcn.00452316
inc eax
lea ecx, [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0x18], eax
call fcn.00407177
add esp, 4
test eax, eax
js 0x407ddb
mov edi, dword [ebp - 0x18]
cmp edi, 0x400
jg 0x407c92
mov ecx, edi
call fcn.004071a4
test al, al
je 0x407c92
mov eax, edi
call fcn.00449460
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x407c9e
push edi
lea ecx, [ebp - 0x1c]
call fcn.00409f5a
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, eax
push 3
push edi
call fcn.00407245
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407ddb
push 0x60
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x407cea
push 2
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x407cea
call fcn.00407368
mov ebx, eax
jmp 0x407db8
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x407d08
call fcn.00407368
jmp 0x407dab
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x407cfe
push dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x407d32
mov ebx, 0x8007000e
jmp 0x407dad
mov byte [ebp - 4], 2
call fcn.0040a07c
cmp eax, 0x400
jbe 0x407d4d
push eax
lea ecx, [ebp]
call fcn.00409fc7
jmp 0x407d53
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x407d71
cmp dword [ebp], 0
je 0x407d2b
mov eax, dword [ebp - 0x14]
mov edx, eax
mov ecx, dword [ebp]
push eax
push dword [ebp - 0x20]
call fcn.004070fd
push eax
call fcn.00407330
mov eax, dword [ebp]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x41c]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x2c]
push dword [ebp]
call fcn.00408b45
mov ebx, eax
test edi, edi
je 0x407db8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x407dd3
lea ecx, [ebp]
call fcn.00409fbe
jmp 0x407dd3
push esi
mov esi, dword [esi]
call fcn.00451a3b
pop ecx
test esi, esi
jne 0x407dca
mov eax, ebx
jmp 0x407e01
mov ebx, dword [ebp]
lea eax, [ebp + 4]
cmp ebx, eax
je 0x407df8
lea ecx, [ebp]
call fcn.00409fbe
jmp 0x407df8
push esi
mov esi, dword [esi]
call fcn.00451a3b
pop ecx
test esi, esi
jne 0x407def
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004489ea
add ebp, 0x408
leave
ret 0x10