Function at 0x4037a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov dword [ebp - 0x434], ecx
mov ecx, dword [ebp - 0x434]
call fcn.00403b00
movzx eax, word [0x4191c0]
cmp eax, 0x7e8
jg 0x403809
movzx ecx, word [0x4191c0]
cmp ecx, 0x7e8
jne 0x4037e3
movzx edx, word [0x4191c2]
cmp edx, 2
jg 0x403809
movzx eax, word [0x4191c0]
cmp eax, 0x7e8
jne 0x403810
movzx ecx, word [0x4191c2]
cmp ecx, 2
jne 0x403810
movzx edx, word [0x4191c6]
cmp edx, 1
jl 0x403810
xor eax, eax
jmp 0x403af0
push 0x4143dc
movzx eax, byte [ebp + 8]
add eax, 0x8a
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
je 0x4038e0
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x4038e0
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4038d3
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040872f
add esp, 4
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x430]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00408360
add esp, 0xc
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [ebp - 0x434]
cmp dword [ecx + 0x10], 0
jne 0x4038f3
xor eax, eax
jmp 0x403af0
lea edx, [ebp - 0x418]
push edx
call fcn.004081e0
add esp, 4
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax*4 + section..data]
jne 0x40393c
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x10]
push edx
call fcn.004082a0
add esp, 0xc
movzx ecx, byte [ebp + 8]
cmp eax, dword [ecx*4 + 0x418010]
je 0x40394e
mov ecx, dword [ebp - 0x434]
call fcn.00403b00
xor eax, eax
jmp 0x403af0
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
mov dword [ebp - 0x428], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 4]
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 6]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x428]
add eax, dword [ebp - 0x41c]
add eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x30]
imul edx, edx, 3
add eax, edx
mov dword [ebp - 0x420], eax
movzx eax, byte [ebp + 8]
cmp eax, 3
jne 0x4039d8
mov ecx, dword [ebp - 0x420]
add ecx, 0x7d5
mov dword [ebp - 0x420], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x420]
jb 0x403a14
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 0x30]
sub ecx, 1
shr ecx, 2
add ecx, 1
cmp dword [ebp - 0x41c], ecx
jne 0x403a14
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x30]
sub eax, 1
shr eax, 3
add eax, 1
cmp dword [ebp - 0x14], eax
je 0x403a26
mov ecx, dword [ebp - 0x434]
call fcn.00403b00
xor eax, eax
jmp 0x403af0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov word [edx + 6], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + 4], ax
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [eax + 2], dx
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov word [edx], cx
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x428]
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x20], ecx
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 0x24]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x28], ecx
movzx eax, byte [ebp + 8]
cmp eax, 3
jne 0x403ade
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x30]
imul edx, edx, 3
mov eax, dword [ebp - 0x434]
add edx, dword [eax + 0x28]
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x2c], edx
jmp 0x403aeb
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x2c], 0
mov eax, 1
mov esp, ebp
pop ebp
ret 4