Function at 0x403180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4ba4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
mov esi, ecx
mov edi, edx
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push str._Undef_
mov ecx, ebp
call edx
mov ecx, dword [edi + 4]
mov eax, esi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
je 0x4033ba
mov edx, dword [edi + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, esi
and eax, 0xf
jbe 0x40320c
lea ecx, [ecx]
sub eax, 1
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403200
movzx esi, word [edi]
push 4
call fcn.00480ed5
add esp, 4
cmp eax, ebx
je 0x403225
lea edx, [esp + 0x14]
mov dword [eax], edx
jmp 0x403227
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
movzx esi, si
lea eax, [esi + 1]
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], 1
call fcn.00403440
mov eax, dword [esp + 0x20]
mov ebx, eax
cmp eax, dword [esp + 0x24]
jbe 0x40325f
call fcn.00480e22
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4033d2
call fcn.00480e22
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40327c
call fcn.00480e22
lea eax, [esi + esi]
push eax
add edi, 2
push edi
push ebx
call fcn.00483e40
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
add esp, 0xc
sar ecx, 1
cmp esi, ecx
jb 0x4032a0
call fcn.00480e22
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
xor edx, edx
push ecx
mov word [eax + esi*2], dx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea edx, [esp + 0x30]
mov ebx, vtable.UnicodeStringStorage.0
push edx
mov dword [esp + 0x30], ebx
call fcn.00477d50
push 0x4c8df0
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 2
call fcn.00405d10
mov byte [esp + 0x54], 3
mov eax, dword [esp + 0x20]
mov esi, eax
cmp eax, dword [esp + 0x24]
jbe 0x4032f1
call fcn.00480e22
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
jne 0x4033d9
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x403310
call fcn.00480e22
push esi
lea ecx, [esp + 0x30]
call fcn.00405d10
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push 0x4c8df0
mov ecx, ebp
call edx
mov eax, dword [esp + 0x3c]
mov esi, eax
cmp eax, dword [esp + 0x40]
jbe 0x40333a
call fcn.00480e22
mov eax, dword [esp + 0x30]
cmp eax, edi
jne 0x4033e0
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x403357
call fcn.00480e22
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push esi
mov ecx, ebp
call edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebx
cmp eax, edi
je 0x403377
push eax
call fcn.00480e32
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call fcn.00480e32
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, edi
je 0x4033a1
push eax
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00480e32
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
mov eax, dword [eax]
jmp 0x403272
mov eax, dword [eax]
jmp 0x403306
mov eax, dword [eax]
jmp 0x40334d