Function at 0x40c2bb
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x465be8
mov eax, dword fs:[0]
push eax
sub esp, 0x89c
mov eax, dword [0x487590]
xor eax, esp
mov dword [esp + 0x898], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487590]
xor eax, esp
push eax
lea eax, [esp + 0x8b0]
mov dword fs:[0], eax
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x8b8], ebp
push dword [esp + 0x8c4]
lea ecx, [esp + 0x1c]
push dword [esp + 0x8c4]
call fcn.00404d2f
test al, al
jne 0x40c3d4
mov esi, str.hwang
lea edi, [esp + 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0xbe]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
add esp, 0xc
lea eax, [esp + 0xb8]
push dword [esp + 0x8c4]
push dword [esp + 0x8c4]
push str.LoadResource_failed._Type_:__s_ID_:__s_r_n
push eax
call fcn.00437dbf
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x10
lea eax, [esp + 0xac]
push eax
call ebx
mov esi, str.hwang
lea edi, [esp + 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0xbe]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xbc]
push str.hwang_err:_d_r_n
push eax
call fcn.00437dbf
add esp, 0xc
lea eax, [esp + 0xac]
push eax
call ebx
jmp 0x40c4f0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40c429
mov esi, str.hwang
lea edi, [esp + 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0xbe]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xbc]
push str.LockResource_failed.hwang_err:_d_r_n
push eax
call fcn.00437dbf
add esp, 0xc
jmp 0x40c47a
push dword [esp + 0x1c]
push dword [0x489e08]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40c48a
mov esi, str.hwang
lea edi, [esp + 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0xbe]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
add esp, 0xc
lea eax, [esp + 0xb8]
push str.ResSize__0_r_n
push eax
call fcn.00437dbf
pop ecx
pop ecx
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40c4f0
push 3
push dword [esp + 0x8c8]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
call fcn.00410f25
mov byte [esp + 0x8b8], 1
push dword [esp + 0x24]
lea ecx, [esp + 0x24]
call fcn.004029e6
lea eax, [esp + 0x28]
mov byte [esp + 0x8b8], 3
cmp dword [esp + 0x24], eax
je 0x40c4d5
push dword [esp + 0x24]
call fcn.00438972
pop ecx
push dword [esp + 0x20]
mov ecx, ebx
push edi
push esi
call fcn.0040c52d
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov ebp, eax
call fcn.00401551
cmp dword [esp + 0x18], 0
je 0x40c501
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebp
mov ecx, dword [esp + 0x8b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x898]
xor ecx, esp
call fcn.00437bed
add esp, 0x8a8
ret 8