Function at 0x4039ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push edx
push 0xa
push 0x7d0
push dword [section..data]
call sub.KERNEL32.dll_FindResourceA
mov dword [0x41927f], eax
push dword [0x41927f]
push dword [section..data]
call sub.KERNEL32.dll_LoadResource
mov dword [0x419283], eax
push dword [0x419283]
call sub.KERNEL32.dll_LockResource
mov dword [0x419287], eax
mov ebx, dword [0x419287]
add ebx, 0x26
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [0x41acd4], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [0x41aca8], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [0x41aca4], eax
sub ebx, 4
push dword [ebx]
pop dword [0x41b65f]
sub ebx, 4
push dword [ebx]
pop dword [0x41ac74]
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [0x41926b], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [0x419273], eax
sub ebx, 4
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [0x41926f], eax
cmp dword [0x41b65f], 0
jbe 0x403c4f
mov eax, dword [0x41b65f]
add eax, dword [0x419287]
push dword [eax + 4]
pop dword [0x41b663]
push eax
mov eax, dword [eax + 8]
cmp eax, 0
jbe 0x403af3
add eax, dword [0x419287]
push dword [eax]
pop dword [0x419346]
add eax, 4
mov dword [0x41acac], eax
pop eax
push eax
mov eax, dword [eax + 0xc]
cmp eax, 0
jbe 0x403b13
add eax, dword [0x419287]
push dword [eax]
pop dword [0x419d74]
add eax, 4
mov dword [0x419d70], eax
pop eax
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x41b667], eax
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x41b66b], eax
cmp dword [0x41b663], 1
jb 0x403c4f
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x41b673], eax
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x41b677], eax
cmp dword [0x41b663], 2
jb 0x403c4f
push eax
mov eax, dword [eax - 4]
mov dword [ebp - 4], 0xc
mul dword [ebp - 4]
pop ebx
add eax, ebx
mov dword [0x41acc0], eax
push dword [eax + 4]
pop dword [0x4191df]
push dword [eax + 8]
pop dword [0x4191e3]
push dword [eax + 0xc]
pop dword [0x4191e7]
push dword [eax + 0x10]
pop dword [0x4191eb]
push dword [eax + 0x14]
pop dword [0x4192bf]
push dword [eax + 0x18]
pop dword [0x4192c3]
push dword [eax + 0x1c]
pop dword [0x4192c7]
push dword [eax + 0x20]
pop dword [0x4192cb]
push dword [eax + 0x24]
pop dword [0x4192cf]
push dword [eax + 0x28]
pop dword [0x419293]
push dword [eax + 0x2c]
pop dword [0x41934e]
push dword [eax + 0x30]
pop dword [0x419352]
push dword [eax + 0x34]
pop dword [0x41935a]
push dword [eax + 0x38]
pop dword [0x41935e]
push dword [eax + 0x3c]
pop dword [0x4192d3]
push dword [eax + 0x40]
pop dword [0x41ac98]
push dword [eax + 0x44]
pop dword [0x41ac9c]
push dword [eax + 0x48]
pop dword [0x41aca0]
push dword [eax + 0x4c]
pop dword [0x419d68]
push dword [eax + 0x50]
pop dword [0x419d6c]
mov edx, dword [eax]
shl edx, 2
add eax, edx
mov dword [0x41acc4], eax
push dword [eax + 4]
pop dword [0x41acc8]
push dword [eax + 8]
pop dword [0x41accc]
push dword [eax + 0xc]
pop dword [0x41acd0]
mov ebx, dword [0x41926b]
mov eax, dword [ebx]
add eax, dword [0x419287]
mov ebx, eax
mov eax, dword [ebx]
mov dword [0x41921b], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41921f], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x419223], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x419376], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x419227], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41922b], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41922f], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4193f0], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x4193df], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41923f], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x419243], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x419277], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41927b], eax
mov dword [ebp - 0x14], ebx
cmp dword [0x41ac74], 7
jb 0x403e04
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov eax, dword [ebx]
mov dword [0x419162], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x419176], eax
cmp dword [0x41ac74], 9
jb 0x403d18
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41acb4], eax
cmp dword [0x41ac74], 9
jb 0x403d35
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41acb8], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41acbc], eax
cmp dword [0x41ac74], 0xa
jb 0x403d4a
cmp dword [0x41ac74], 0x186a0
jb 0x403d56
cmp dword [0x41ac74], 0x186a1
jb 0x403d60
add ebx, 4
mov eax, dword [ebx]
mov dword [0x419166], eax
cmp dword [0x41ac74], 0xb
jb 0x403d75
cmp dword [0x41ac74], 0x186a0
jb 0x403d81
cmp dword [0x41ac74], 0x186a2
jb 0x403d8b
add ebx, 4
mov eax, dword [ebx]
mov dword [0x419233], eax
cmp dword [0x41ac74], 0xc
jb 0x403da0
cmp dword [0x41ac74], 0x186a0
jb 0x403dac
cmp dword [0x41ac74], 0x186a3
jb 0x403e04
add ebx, 4
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x41acd8], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x41ace8], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x41acdc], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x41ace0], ebx
add ebx, dword [ebp - 0x14]
push dword [ebx]
pop dword [ebp - 0x14]
add ebx, 4
mov dword [0x41ace4], ebx
add ebx, dword [ebp - 0x14]
mov ebx, dword [0x41926b]
add ebx, 8
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [0x419257], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [0x41925b], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [0x41925f], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [0x419263], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [0x419267], eax
cmp dword [0x41922b], 0
jne 0x403e6d
mov dword [0x41922b], 0x28
cmp dword [0x41922f], 0
jne 0x403e80
mov dword [0x41922f], 0x14
cmp dword [0x419293], 1
jne 0x403f69
mov ebx, dword [0x41acd4]
sub ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41c217], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41acd4]
mov dword [0x41c213], eax
add ebx, 8
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41c20f], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41acd4]
mov dword [0x41c20b], eax
add ebx, 8
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41c1db], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41acd4]
mov dword [0x41c1df], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41c1e3], eax
add ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41c1ef], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41acd4]
mov dword [0x41c1eb], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41c1e7], eax
add ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41c1fb], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41acd4]
mov dword [0x41c1f7], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41c1f3], eax
add ebx, 4
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41c207], eax
add ebx, 4
mov eax, dword [ebx]
add eax, dword [0x41acd4]
mov dword [0x41c203], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [0x41c1ff], eax
push dword [0x41921b]
pop dword [ebp - 4]
cmp dword [0x419227], 1
jne 0x403f7e
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 4], 4
mul dword [ebp - 4]
mov ebx, eax
add ebx, dword [0x419267]
mov eax, dword [ebx]
mul dword [ebp - 4]
add eax, dword [0x419263]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x419263]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
jge 0x404017
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx]
mov dword [ebp - 4], eax
add ebx, 4
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
je 0x404011
mov ebx, dword [ebp - 4]
shl ebx, 2
add ebx, dword [0x419273]
mov eax, dword [ebx]
add eax, dword [0x419287]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0xc]
call fcn.0040f9d0
mov ebx, dword [ebp - 0x10]
mov byte ss:[ebx + ebp - 0x9c], 0
push dword [ebp - 0x18]
lea eax, [ebp - 0x9c]
push eax
call fcn.0040f7ab
add dword [ebp - 8], 0x2c
jmp 0x403fa9
pop edx
pop ebx
leave
ret