Function at 0x45b898
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
xor ebx, ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
test dl, dl
je 0x45b8c8
add esp, 0xfffffff0
call fcn.004037f0
mov dword [ebp - 0x24], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
call fcn.00404750
mov eax, dword [ebp + 8]
call fcn.00404750
xor eax, eax
push ebp
push 0x45bb78
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0040349c
mov byte [ebp - 0x1d], 0
xor eax, eax
mov dword [ebp - 0x18], eax
push 0xa
push 0x45bbac
push dword [ebp + 8]
push 0x45bbbc
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.00404620
mov eax, dword [ebp - 0x130]
call fcn.00404760
push eax
mov eax, dword [0x488664]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45ba34
push 0xa
push 0x45bbac
push dword [ebp + 8]
push 0x45bbcc
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.00404620
mov eax, dword [ebp - 0x134]
call fcn.00404760
push eax
mov eax, dword [0x488664]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45ba34
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x488664]
push eax
call sub.kernel32.dll_SizeofResource
cmp eax, 4
jb 0x45ba34
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x488664]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45ba34
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45ba34
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jbe 0x45ba34
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x488664]
push eax
call sub.kernel32.dll_SizeofResource
cmp eax, dword [ebp - 0x1c]
jb 0x45ba34
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x488664]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45ba34
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45ba34
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov byte [ebp - 0x1d], 1
cmp byte [ebp - 0x1d], 0
jne 0x45bb4a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00408c4c
test al, al
jne 0x45baa2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x129]
push eax
push 0x105
push 0
push 0x45bbac
push dword [ebp + 8]
push 0x45bbe0
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.00404620
mov eax, dword [ebp - 0x138]
call fcn.00404760
push eax
push 0
call sub.kernel32.dll_SearchPathA
mov ecx, eax
lea edx, [ebp - 0x129]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00404390
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00408c4c
test al, al
jne 0x45bb09
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x129]
push eax
push 0x105
push 0
push 0x45bbac
push dword [0x485ec0]
push 0x45bbe0
lea eax, [ebp - 0x13c]
mov edx, 3
call fcn.00404620
mov eax, dword [ebp - 0x13c]
call fcn.00404760
push eax
push 0
call sub.kernel32.dll_SearchPathA
mov ecx, eax
lea edx, [ebp - 0x129]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00404390
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.00408c4c
test al, al
jne 0x45bb30
push 1
mov ecx, 0x2a32
mov dl, 1
mov eax, dword [0x45a108]
call fcn.0045ac5c
call fcn.00403c58
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
call fcn.00417ea0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb7f
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.004042c4
lea eax, [ebp - 0x24]
call fcn.004042a0
lea eax, [ebp + 8]
call fcn.004042a0
ret