Function at 0x404904
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40490d
mov eax, dword [ebp - 4]
add esp, 0xfffff8a4
push ebx
mov eax, 0x48785c
call fcn.00462a08
mov word [ebp - 0x2c], 8
xor edx, edx
mov dword [ebp - 4], edx
inc dword [ebp - 0x20]
mov word [ebp - 0x2c], 0x14
mov word [ebp - 0x2c], 0x20
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 0x10]
call fcn.0046c9a0
push eax
inc dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
call fcn.0046c9a0
inc dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
inc dword [ebp - 0x20]
pop edx
call fcn.0046ca58
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0046ca44
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0046ca14
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0046ca14
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0046ca14
push dword [ebp + 0xc]
lea ecx, [ebp - 0x13d8]
push ecx
call fcn.00462754
add esp, 8
push 0x486fda
lea eax, [ebp - 0x13d8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x404a2d
lea edx, [ebp - 0x13d8]
push edx
push str.ERROR:_Can_not_find_resource:__s
lea ecx, [ebp - 0x2760]
push ecx
call fcn.00464204
add esp, 0xc
lea eax, [ebp - 0x2760]
push eax
call fcn.00403908
pop ecx
xor eax, eax
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046ca14
pop eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x404b24
push dword [ebp - 0x50]
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0x48], eax
push dword [ebp - 0x50]
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_SizeofResource
mov dword [ebp - 0x44], eax
mov dl, 1
mov eax, dword [0x409208]
call fcn.00404b2c
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x10]
push dword [ebp - 0x4c]
call sub.KERNEL32.DLL_FreeResource
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
call fcn.0040dab4
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x404ad1
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov word [ebp - 0x2c], 0x38
mov edx, 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x2c], 0x2c
cmp dword [ebp - 4], 0
je 0x404adc
mov eax, dword [ebp - 4]
jmp 0x404ae1
mov eax, 0x487016
push eax
push dword [ebp + 0x10]
push str.Saved__s_to:__s
lea edx, [ebp - 0x2760]
push edx
call fcn.00464204
add esp, 0x10
lea ecx, [ebp - 0x2760]
push ecx
call fcn.00403908
pop ecx
mov al, 1
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046ca14
pop eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret