Function at 0x4034da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0
je 0x403509
cmp dword [ebp + 0x10], 0
jne 0x403548
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
mov eax, dword [section..bss]
mov dword [esp + 0x14], 0x40b0c8
mov dword [esp + 0x10], 0x40b0d1
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x192
mov dword [esp + 4], 0xbb9
mov dword [esp], eax
call fcn.00405dca
jmp 0x40371f
mov eax, dword [ebp + 0xc]
movzx eax, ax
mov ebx, eax
cmp dword [ebp + 8], 0
jne 0x403569
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call eax
sub esp, 4
jmp 0x40356c
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindResourceW]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4035cc
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
mov eax, dword [section..bss]
mov dword [esp + 0x14], 0x40b0c8
mov dword [esp + 0x10], 0x40b0d1
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x199
mov dword [esp + 4], 0xbb9
mov dword [esp], eax
call fcn.00405dca
jmp 0x40371f
cmp dword [ebp + 8], 0
jne 0x4035e5
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call eax
sub esp, 4
jmp 0x4035e8
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403644
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
mov eax, dword [section..bss]
mov dword [esp + 0x14], 0x40b0c8
mov dword [esp + 0x10], 0x40b0d1
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x1a0
mov dword [esp + 4], 0xbb9
mov dword [esp], eax
call fcn.00405dca
jmp 0x40371f
cmp dword [ebp + 8], 0
jne 0x40365d
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call eax
sub esp, 4
jmp 0x403660
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
call eax
sub esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4036b9
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
mov eax, dword [section..bss]
mov dword [esp + 0x14], 0x40b0c8
mov dword [esp + 0x10], 0x40b0d1
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x1a7
mov dword [esp + 4], 0xbb9
mov dword [esp], eax
call fcn.00405dca
jmp 0x40371f
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LockResource]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40370e
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
mov eax, dword [section..bss]
mov dword [esp + 0x14], 0x40b0c8
mov dword [esp + 0x10], 0x40b0d1
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x1ae
mov dword [esp + 4], 0xbb9
mov dword [esp], eax
call fcn.00405dca
jmp 0x40371f
cmp dword [ebp + 0x14], 0
je 0x40371e
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
jmp 0x40371f
nop
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret