Function at 0x406e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449526
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x498
mov eax, dword [0x47bd14]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x498], ecx
mov dword [ebp - 0x468], 3
mov dword [ebp - 0x41c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x498]
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x418], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x438], ecx
cmp dword [ebp - 0x438], 0
jne 0x406eb8
mov dword [ebp - 0x454], 0
jmp 0x407093
mov edx, dword [ebp - 0x438]
push edx
call fcn.0041cd7c
add esp, 4
add eax, 1
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x460], eax
mov eax, 2
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 0x460]
cdq
push esi
push ecx
push edx
push eax
call fcn.0040d9f0
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], edx
cmp dword [ebp - 0x444], 0
jg 0x406f30
jl 0x406f19
cmp dword [ebp - 0x448], 0x7fffffff
ja 0x406f30
cmp dword [ebp - 0x444], 0xffffffff
jg 0x406f6d
jl 0x406f30
cmp dword [ebp - 0x448], 0x80000000
jae 0x406f6d
mov edx, 0x216
test edx, edx
jg 0x406f45
mov dword [ebp - 0x44c], 0x216
jmp 0x406f5f
mov eax, 0x216
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x450], ecx
jmp 0x406f83
mov edx, dword [ebp - 0x448]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x450], 0
cmp dword [ebp - 0x450], 0
jge 0x406f9b
mov dword [ebp - 0x434], 0
jmp 0x407087
cmp dword [ebp - 0x424], 0x400
jg 0x406fdf
mov eax, dword [ebp - 0x424]
push eax
call fcn.0040b4c0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x406fdf
mov eax, dword [ebp - 0x424]
call fcn.0040da30
mov dword [ebp - 0x49c], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x49c]
mov dword [ebp - 0x430], edx
jmp 0x406ff7
mov eax, dword [ebp - 0x424]
push eax
lea ecx, [ebp - 0x41c]
call fcn.004037a0
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x464], ecx
mov edx, dword [ebp - 0x4a8]
mov dword [ebp - 0x434], edx
cmp dword [ebp - 0x430], 0
je 0x407021
cmp dword [ebp - 0x438], 0
jne 0x40702d
mov dword [ebp - 0x434], 0
jmp 0x407087
mov eax, dword [ebp - 0x430]
mov byte [eax], 0
push 0
push 0
mov ecx, dword [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x430]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x438]
push eax
push 0
mov ecx, dword [ebp - 0x468]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0
jne 0x40707b
mov dword [ebp - 0x434], 0
jmp 0x407087
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x434], edx
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x454], eax
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x43c], ecx
cmp dword [ebp - 0x43c], 0
jne 0x407115
mov dword [ebp - 0x474], 0x8007000e
mov byte [ebp - 4], 0
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x4070cf
lea ecx, [ebp - 0x418]
call fcn.00404990
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x41c], 0
je 0x40710a
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp - 0x41c]
mov edx, dword [ecx]
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x470]
push eax
call fcn.0041b026
add esp, 4
jmp 0x4070d6
mov eax, dword [ebp - 0x474]
jmp 0x4073ad
push 0x60
push 0
mov ecx, dword [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x40714c
push 2
push 0
mov edx, dword [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x407165
call fcn.00403d70
mov dword [ebp - 0x42c], eax
jmp 0x40732d
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x407199
call fcn.00403d70
mov dword [ebp - 0x42c], eax
jmp 0x40732d
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0
jne 0x4071cc
call fcn.00403d70
mov dword [ebp - 0x42c], eax
jmp 0x40732d
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x47c], ecx
mov edx, dword [ebp - 0x428]
add edx, 1
cmp edx, dword [ebp - 0x428]
jae 0x407212
mov dword [ebp - 0x42c], 0x8007000e
jmp 0x40732d
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x428]
add eax, 1
push eax
lea ecx, [ebp - 0x418]
call fcn.00403850
jmp 0x407233
mov dword [ebp - 4], 1
jmp 0x407243
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x478], ecx
cmp dword [ebp - 0x478], 0
jne 0x407267
mov dword [ebp - 0x42c], 0x8007000e
jmp 0x40732d
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x480], edx
mov eax, dword [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x47c]
push ecx
mov edx, dword [ebp - 0x428]
push edx
mov eax, dword [ebp - 0x480]
push eax
call fcn.0040b6b0
add esp, 0x10
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x484]
mov dword [ebp - 0x45c], ecx
cmp dword [ebp - 0x45c], 0x50
ja case.0x4072bf.1
mov edx, dword [ebp - 0x45c]
movzx eax, byte [edx + 0x4073e4]
jmp dword [eax*4 + 0x4073d4]
push 0x8007000e
call fcn.00403df0
jmp 0x4072ea
push 0x80070057
call fcn.00403df0
jmp 0x4072ea
jmp 0x4072ea
push 0x80004005
call fcn.00403df0
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x488], ecx
mov edx, dword [ebp - 0x488]
add edx, dword [ebp - 0x428]
mov byte [edx], 0
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x48c], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x48c]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.00406c20
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x420], 0
je 0x407343
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x494], ecx
mov byte [ebp - 4], 0
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x40736c
lea ecx, [ebp - 0x418]
call fcn.00404990
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x41c], 0
je 0x4073a7
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x490], eax
mov ecx, dword [ebp - 0x41c]
mov edx, dword [ecx]
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x490]
push eax
call fcn.0041b026
add esp, 4
jmp 0x407373
mov eax, dword [ebp - 0x494]
lea esp, [ebp - 0x4b8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d9dd
mov esp, ebp
pop ebp
ret 0x10