Function at 0x4037c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0xc], 1
mov ecx, 0x49d688
call fcn.0041c0d0
mov dword [ebp - 8], eax
push 0xf0
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [0x49c254]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4039b8
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4039b8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4039b8
call fcn.004039d0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xc], 0
je 0x4039b8
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
test eax, eax
je 0x4039b8
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
mov word [ebp - 0x2c], dx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
mov word [ebp - 0x30], dx
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
movzx ecx, word [ebp - 0x30]
cmp ecx, 0x403
jne 0x40390f
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x4038a8
mov dword [ebp - 0x5c], 0
jmp 0x4038e3
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.0046fc30
mov dword [ebp - 0x60], esp
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.004039e0
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
push edx
push 0
push 0x143
movzx eax, word [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 4
call fcn.00405070
cmp eax, 0xffffffff
jne 0x40390a
mov dword [ebp - 0xc], 0
jmp 0x4039aa
movzx ecx, word [ebp - 0x30]
cmp ecx, 0x1234
jne 0x4039aa
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x403942
mov dword [ebp - 0x64], 0
jmp 0x40397d
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.0046fc30
mov dword [ebp - 0x68], esp
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004039e0
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0x40b
movzx ecx, word [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x58]
add ecx, 4
call fcn.00405070
cmp eax, 0xffffffff
jne 0x4039aa
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], edx
jmp 0x403838
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x68]
mov esp, ebp
pop ebp
ret 4