Function at 0x40b4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x438920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x44], 1
call fcn.00434891
mov esi, dword [eax + 0xc]
lea eax, [esp + 0x4c]
push 0x4474ac
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0042a94c
lea edx, [esp + 0x58]
mov byte [esp + 0x44], 2
push edx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0042a8e6
mov bl, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], bl
call fcn.0042a6b7
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor esi, esi
mov edi, eax
cmp ebp, esi
je 0x40b685
cmp edi, esi
jbe 0x40b685
lea ecx, [esp + 0x28]
call fcn.0042f894
mov eax, dword [0x44927c]
mov dword [esp + 0x38], eax
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x48], 7
mov dword [esp + 0x2c], vtable.CFileException.0
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0xffffffff
call fcn.0042a840
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 8
call fcn.0042ef98
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push 0x9001
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 9
call fcn.0042f0aa
test eax, eax
jne 0x40b5d7
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 3
jge 0x40b60f
push 0x3e8
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push 0x9001
push ecx
lea ecx, [esp + 0x24]
inc esi
call fcn.0042f0aa
test eax, eax
je 0x40b5ae
push edi
push ebp
lea ecx, [esp + 0x20]
call fcn.0042f201
lea ecx, [esp + 0x18]
call fcn.0042f2c5
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 8
call fcn.0042efed
mov dword [esp + 0x28], vtable.CFileException.0
mov byte [esp + 0x44], 0xc
lea ecx, [esp + 0x38]
jmp 0x40b6d2
mov edx, dword [0x44927c]
mov dword [esp + 0x54], edx
push str.Create_file_error__
lea ecx, [esp + 0x58]
mov byte [esp + 0x48], 0xa
call fcn.0042a840
lea eax, [esp + 0x10]
lea ecx, [esp + 0x54]
push eax
call fcn.0042aacf
push 0x448414
lea ecx, [esp + 0x58]
call fcn.0042aa93
mov ecx, dword [esp + 0x54]
push 0
push 0
push ecx
call fcn.0043221d
lea ecx, [esp + 0x54]
mov byte [esp + 0x44], 9
call fcn.0042a6b7
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 8
call fcn.0042efed
mov dword [esp + 0x28], vtable.CFileException.0
mov byte [esp + 0x44], 0xb
lea ecx, [esp + 0x38]
jmp 0x40b6d2
mov edx, dword [0x44927c]
mov dword [esp + 0x50], edx
push str.Create_file_error__
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 5
call fcn.0042a840
lea eax, [esp + 0x10]
lea ecx, [esp + 0x50]
push eax
call fcn.0042aacf
push 0x448414
lea ecx, [esp + 0x54]
call fcn.0042aa93
mov ecx, dword [esp + 0x50]
push esi
push esi
push ecx
call fcn.0043221d
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x50]
call fcn.0042a6b7
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 1
call fcn.0042a6b7
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0
call fcn.0042a6b7
lea ecx, [esp + 0x58]
mov dword [esp + 0x44], 0xffffffff
call fcn.0042a6b7
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0x10