Function at 0x407d0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
movzx edi, word [ebp + 8]
push pe_nt_image_headers32
push edi
push dword [0xb220e4]
mov dword [ebp - 0x1c], ecx
call esi
and dword [ebp - 0x18], 0
and dword [ebp + 8], 0
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
je 0x407d57
push eax
push dword [0xb220e4]
call ebx
test eax, eax
je 0x407d57
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
push 5
push edi
push dword [0xb220e4]
call esi
test eax, eax
je 0x408005
push eax
push dword [0xb220e4]
call ebx
test eax, eax
je 0x407ffd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407ffd
xor eax, eax
cmp word [esi + 2], 0xffff
push esi
sete al
mov dword [ebp - 4], eax
call fcn.00402ccd
movzx edi, word [eax]
push esi
mov dword [ebp - 0x24], edi
call fcn.00402ce1
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x1c]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp - 0x10], 0
test di, di
mov dword [ebp - 0xc], eax
jbe 0x408005
cmp dword [ebp - 4], 0
je 0x407dd9
mov ebx, dword [esi + 0x14]
jmp 0x407ddd
movzx ebx, word [esi + 0x10]
push dword [ebp - 4]
push esi
call fcn.00402e00
test al, al
pop ecx
pop ecx
je 0x407fa2
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
push ebx
call fcn.00402dc2
and dword [ebp - 8], 0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x407e4a
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x407fd7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push dword [ebp + 8]
push ebx
push eax
call fcn.00402bf4
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call fcn.0040308a
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 8], eax
jl 0x407f8a
and dword [ebp + 8], 0
call fcn.0040347c
mov edi, dword [ebp - 4]
test edi, edi
lea eax, [esi + 0x18]
jne 0x407e7d
lea eax, [esi + 0x12]
test edi, edi
mov dword [ebp - 0x20], eax
je 0x407e8a
movzx eax, word [esi + 0xc]
jmp 0x407e8e
movzx eax, word [esi + 8]
test edi, edi
movsx edx, ax
mov dword [ebp - 0x34], edx
je 0x407e9e
movzx eax, word [esi + 0xe]
jmp 0x407ea2
movzx eax, word [esi + 0xa]
test edi, edi
movsx ecx, ax
mov dword [ebp - 0x30], ecx
je 0x407eb2
movzx eax, word [esi + 0x10]
jmp 0x407eb6
movzx eax, word [esi + 0xc]
movsx eax, ax
add eax, edx
test edi, edi
mov dword [ebp - 0x2c], eax
je 0x407ec8
movzx eax, word [esi + 0x12]
jmp 0x407ecc
movzx eax, word [esi + 0xe]
mov ebx, dword [ebp - 0x1c]
movsx eax, ax
add eax, ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test edi, edi
je 0x407eed
mov edx, dword [esi + 0x14]
jmp 0x407ef1
movzx edx, word [esi + 0x10]
test edi, edi
je 0x407efa
mov edi, dword [esi + 4]
jmp 0x407efc
xor edi, edi
cmp dword [ebp - 4], 0
je 0x407f07
mov eax, dword [esi + 8]
jmp 0x407f09
mov eax, dword [esi]
push 0
push ecx
mov ecx, esp
push edi
or eax, 0x10000
push eax
xor edi, edi
push edi
push ecx
mov dword [ecx], edx
mov eax, esp
lea ecx, [ebp - 0x34]
mov dword [eax], ecx
push dword [ebx + 4]
lea ecx, [ebp + 8]
call fcn.00402fd7
mov ebx, dword [ebp + 8]
cmp ebx, edi
je 0x407f82
cmp dword [ebp - 4], edi
je 0x407f47
mov eax, dword [esi]
cmp eax, edi
je 0x407f47
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [ebp - 0x14]
lea ecx, [ebp + 8]
push edi
push dword [ebp - 8]
push dword [ebp - 0x20]
call fcn.00407ce9
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x407fe5
cmp word [ebp - 0x10], di
jne 0x407f6d
mov dword [ebp - 0xc], edi
push 0x13
push edi
push edi
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0xc], ebx
jmp 0x407f8a
call fcn.00401245
mov dword [ebp + 8], eax
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 8]
test eax, eax
je 0x407fb7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x407fb7
cmp word [ebp - 0x10], 0
je 0x407fb7
push 2
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push esi
call fcn.00402d61
inc dword [ebp - 0x10]
mov esi, eax
mov ax, word [ebp - 0x10]
cmp ax, word [ebp - 0x24]
pop ecx
pop ecx
jb 0x407dce
jmp 0x408005
mov eax, dword [ebp - 8]
mov dword [ebp + 8], 0x8007000e
test eax, eax
jmp 0x407ff3
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x408005
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x408005
call fcn.00401245
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4