Function at 0x40185b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov edx, 0xb
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401861
call fcn.0040cdd0
push dword [esp + 0x38]
call fcn.00403200
push 0xa
mov eax, 0x45203c
push eax
push dword [esp + 0x3c]
call sub.KERNEL32.dll_FindResourceW
mov dword [esp], eax
push 0xa
mov eax, 0x452040
push eax
push dword [esp + 0x3c]
call sub.KERNEL32.dll_FindResourceW
mov dword [esp + 4], eax
cmp dword [esp], 0
je 0x4019fb
push dword [esp]
push dword [esp + 0x38]
call sub.KERNEL32.dll_LoadResource
mov dword [esp + 8], eax
push dword [esp]
push dword [esp + 0x38]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x454a60], eax
push 0x64
call fcn.0040a8f0
mov dword [esp + 0xc], eax
push 2
push 0x64
push dword [esp + 0x14]
push dword [0x454a60]
push dword [esp + 0x18]
call fcn.00404aad
mov dword [esp + 0x10], eax
push dword [esp + 0xc]
pop eax
call fcn.004031b0
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0xc]
inc ebx
push ebx
pop eax
call fcn.004031b0
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0xc]
add ebx, 2
push ebx
pop eax
call fcn.004031b0
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0xc]
add ebx, 3
push ebx
pop eax
call fcn.004031b0
mov dword [0x454abc], eax
mov ebx, dword [esp + 0xc]
add ebx, 4
push ebx
pop eax
call fcn.004031b0
mov dword [0x454a7c], eax
mov ebx, dword [esp + 0xc]
add ebx, 5
push ebx
pop eax
call fcn.004031b0
mov dword [0x454aa4], eax
mov ebx, dword [esp + 0xc]
add ebx, 6
push ebx
pop eax
call fcn.004031b0
mov dword [0x454a98], eax
mov ebx, dword [esp + 0xc]
add ebx, 7
push ebx
pop eax
call fcn.004031b0
mov dword [0x454a68], eax
mov ebx, dword [esp + 0xc]
add ebx, 8
push ebx
pop eax
call fcn.004031b0
mov dword [0x454a90], eax
mov ebx, dword [esp + 0xc]
add ebx, 9
push ebx
pop eax
call fcn.004031b0
mov dword [0x454a94], eax
mov ebx, dword [esp + 0xc]
add ebx, 0xa
push ebx
call fcn.0040a990
push edx
push eax
pop dword [0x454a4c]
pop dword [0x454a50]
mov ebx, dword [esp + 0xc]
add ebx, 0x12
push ebx
call fcn.0040a990
push edx
push eax
pop dword [0x454a44]
pop dword [0x454a48]
push dword [esp + 0xc]
call fcn.0040a970
jmp 0x401a53
cmp dword [esp + 4], 0
je 0x401a4e
push dword [esp + 4]
push dword [esp + 0x38]
call sub.KERNEL32.dll_LoadResource
mov dword [esp + 8], eax
push dword [esp + 8]
call fcn.0040a990
push edx
push eax
pop dword [0x454a4c]
pop dword [0x454a50]
mov edx, 0x452026
push edx
call fcn.0040ce60
pop edx
push eax
push edx
call fcn.0040cea0
pop eax
push eax
call fcn.004031d0
pop edx
add eax, edx
jmp 0x401b30
call fcn.004015bf
push dword [esp + 0x14]
mov ebx, 2
cmp ebx, dword [esp]
jne 0x401a71
mov edx, str.__autoexit
lea ecx, [esp + 0x24]
call fcn.00403068
jmp 0x401a99
mov ebx, 3
cmp ebx, dword [esp]
jne 0x401a8b
mov edx, 0x452048
lea ecx, [esp + 0x24]
call fcn.00403068
jmp 0x401a99
mov edx, 0x452020
lea ecx, [esp + 0x24]
call fcn.00403068
pop eax
push dword [esp + 0x18]
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401ab8
mov edx, str.__fs
lea ecx, [esp + 0x28]
call fcn.00403068
jmp 0x401ac6
mov edx, 0x452020
lea ecx, [esp + 0x28]
call fcn.00403068
pop eax
push dword [esp + 0x1c]
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401ae5
mov edx, str.__noborder
lea ecx, [esp + 0x2c]
call fcn.00403068
jmp 0x401af3
mov edx, 0x452020
lea ecx, [esp + 0x2c]
call fcn.00403068
pop eax
mov edx, dword [esp + 0x20]
push edx
call fcn.0040ce60
pop edx
push eax
push edx
call fcn.0040cea0
mov edx, dword [esp + 0x28]
push edx
call fcn.0040cea0
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040cea0
pop eax
push eax
call fcn.004031d0
pop edx
add eax, edx
jmp 0x401b30
push dword [esp + 0x28]
call fcn.0040ce30
push dword [esp + 0x24]
call fcn.0040ce30
push dword [esp + 0x20]
call fcn.0040ce30
add esp, 0x2c
pop ebx
ret 4