Function at 0x404f48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x404f51
mov eax, dword [ebp - 4]
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1001c], eax
xor eax, eax
push ebp
push 0x4051ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x4051cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4077b4]
xor edx, edx
mov dword [eax], edx
push 0xa
push 0x405200
mov eax, dword [0x40a7e0]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x404fb7
call fcn.00403548
jmp 0x4051d4
push ebx
mov eax, dword [0x40a7e0]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404fd6
call fcn.00403548
jmp 0x4051d4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov edx, dword [0x4077a4]
mov dword [edx], eax
push ebx
mov eax, dword [0x40a7e0]
push eax
call sub.kernel32.dll_SizeofResource
mov edx, dword [0x4077b4]
mov dword [edx], eax
mov eax, dword [0x4077b4]
cmp dword [eax], 0xa
jge 0x40500f
call fcn.00403548
jmp 0x4051d4
lea edx, [ebp - 0x1001c]
mov eax, 0x40520c
call fcn.00404dcc
mov edx, dword [ebp - 0x1001c]
mov eax, dword [0x4077a8]
call fcn.00403a5c
mov eax, dword [0x4077a8]
mov eax, dword [eax]
call fcn.00404ef0
mov esi, eax
mov dl, 1
mov eax, dword [0x404038]
call fcn.004042d4
mov edi, eax
mov eax, dword [0x4077ac]
mov dword [eax], 2
mov eax, dword [0x4077a4]
mov eax, dword [eax]
mov edx, dword [0x4077ac]
add eax, dword [edx]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00402ca8
mov eax, dword [0x4077ac]
mov dword [eax], 6
mov eax, dword [0x4077a4]
mov eax, dword [eax]
mov edx, dword [0x4077ac]
add eax, dword [edx]
lea edx, [ebp - 0x10]
mov ecx, 4
call fcn.00402ca8
mov eax, dword [0x4077ac]
mov dword [eax], 0xe
mov byte [ebp - 0x11], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [0x4077b4]
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x10]
cdq
xor eax, edx
sub eax, edx
sub ecx, eax
mov eax, dword [0x4077b0]
mov dword [eax], ecx
mov ebx, 0x10000
cmp ebx, dword [ebp - 0xc]
jbe 0x4050d9
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40511d
lea edx, [ebp - 0x10018]
mov ecx, ebx
mov eax, edi
call fcn.0040427c
test al, al
jne 0x4050f6
mov byte [ebp - 0x11], 1
jmp 0x40511d
lea eax, [ebp - 0x10018]
mov ecx, dword [ebp - 0x18]
mov edx, ebx
call fcn.004040cc
add dword [ebp - 0x18], ebx
lea edx, [ebp - 0x10018]
mov ecx, ebx
mov eax, esi
call fcn.00404f14
sub dword [ebp - 0xc], ebx
jmp 0x4050cc
cmp byte [ebp - 0x11], 0
je 0x40512d
call fcn.00403548
jmp 0x4051d4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4077b4]
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x10]
cdq
xor eax, edx
sub eax, edx
sub ecx, eax
mov eax, dword [0x4077ac]
mov dword [eax], ecx
mov eax, dword [0x4077ac]
cmp dword [eax], 0
jge 0x405163
call fcn.00403548
jmp 0x4051d4
mov ebx, 0x10000
cmp ebx, dword [ebp - 0xc]
jbe 0x405170
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405197
lea edx, [ebp - 0x10018]
mov ecx, ebx
mov eax, edi
call fcn.00404088
lea edx, [ebp - 0x10018]
mov ecx, ebx
mov eax, esi
call fcn.00404f14
sub dword [ebp - 0xc], ebx
jmp 0x405163
mov eax, esi
call fcn.00404f40
mov eax, edi
call fcn.00403020
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeResource
cmp byte [ebp - 0x11], 0
je 0x4051bb
call fcn.00403548
jmp 0x4051d4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051f4
lea eax, [ebp - 0x1001c]
call fcn.00403a08
ret