Function at 0x1004c28f
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x28], 0
jmp 0x1004c2af
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 3
jge 0x1004c2c5
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0xcc], 0xfffffffa
jmp 0x1004c2a8
mov dword [ebp - 0xc], 2
jmp 0x1004c2d5
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x1004c6a1
mov dword [ebp - 4], 0x32bb11ac
mov dword [ebp - 4], 0
jmp 0x1004c2f6
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jg 0x1004c69c
mov dword [ebp - 0x20], 0xafc37186
mov dword [ebp - 0x4c], 0xb7a1
mov dword [ebp - 0x20], 2
jmp 0x1004c31e
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x1004c697
mov dword [ebp - 8], 0x6d0374c7
mov dword [ebp - 8], 2
jmp 0x1004c33f
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x1004c692
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x2c], 0
jmp 0x1004c360
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 3
jge 0x1004c376
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x120], 0xfffffffc
jmp 0x1004c359
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0xcc]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x4c], 0
je 0x1004c404
imul eax, dword [ebp - 4], 0
cmp eax, dword [ebp - 4]
jle 0x1004c3a3
mov dword [ebp - 0x88], 1
jmp 0x1004c3aa
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp + eax*4 - 0xcc]
cmp dword [ebp - 0x88], eax
jl 0x1004c3cb
cmp dword [ebp - 0x4c], 0
jne 0x1004c3cb
and dword [ebp - 0x94], 0
jmp 0x1004c3d5
mov dword [ebp - 0x94], 1
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x94], eax
jl 0x1004c3ec
mov dword [ebp - 0xd0], 1
jmp 0x1004c3f3
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
je 0x1004c404
mov dword [ebp - 0x54], 1
jmp 0x1004c408
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp + eax*4 - 0xcc]
imul eax, dword [ebp - 0x18]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x9c]
mov dword [ebp + eax*4 - 0xcc], ecx
cmp dword [ebp - 0x9c], 0
jne 0x1004c444
mov dword [ebp - 0x5c], 1
jmp 0x1004c448
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x5c], eax
jne 0x1004c45c
mov dword [ebp - 0xa8], 1
jmp 0x1004c463
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xa8]
cmp eax, dword [ebp - 0x20]
jle 0x1004c475
cmp dword [ebp - 4], 0
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x120], 0xb71808ad
ja 0x1004c490
mov dword [ebp - 0x34], 1
jmp 0x1004c494
and dword [ebp - 0x34], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp + eax - 0x120], ecx
cmp dword [ebp - 0x34], 0
je 0x1004c4b9
cmp dword [ebp - 4], 0
je 0x1004c4b9
mov dword [ebp - 0x64], 1
jmp 0x1004c4bd
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
dec eax
jne 0x1004c4d2
cmp dword [ebp - 4], 0
jne 0x1004c4d2
and dword [ebp - 0xe4], 0
jmp 0x1004c4dc
mov dword [ebp - 0xe4], 1
cmp dword [ebp - 4], 0
je 0x1004c534
mov dword [ebp - 0x18], 2
jmp 0x1004c4f2
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x1004c52f
mov dword [ebp - 0xf0], 0x925b974d
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x1004c51b
push 0x108
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0xcc]
neg eax
mov dword [ebp - 0xf0], eax
jmp 0x1004c4eb
jmp 0x1004c677
mov dword [ebp - 0x1c], 0xb1262954
mov dword [ebp - 0xdc], 0x1f101fbe
cmp dword [ebp - 4], 0
je 0x1004c5ac
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 4], eax
jle 0x1004c568
mov dword [ebp - 0xb0], 1
jmp 0x1004c56f
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0xb0], eax
je 0x1004c589
mov eax, 0x6906
test eax, eax
jne 0x1004c589
and dword [ebp - 0x6c], 0
jmp 0x1004c590
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x6c]
add ecx, 0x1ebdc590
cmp eax, ecx
jge 0x1004c5ac
and dword [ebp - 0xb8], 0
jmp 0x1004c5b6
mov dword [ebp - 0xb8], 1
cmp dword [ebp - 0xb8], 7
jne 0x1004c5c8
mov dword [ebp - 0x74], 1
jmp 0x1004c5cc
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x74], eax
jg 0x1004c5e0
mov dword [ebp - 0xc0], 1
jmp 0x1004c5e7
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0x1c], 0
jne 0x1004c60e
cmp dword [ebp - 0x1c], 0
jne 0x1004c60e
and dword [ebp - 0xa4], 0
jmp 0x1004c618
mov dword [ebp - 0xa4], 1
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 8]
test eax, eax
je 0x1004c643
cmp dword [ebp - 0xc], 0
je 0x1004c643
mov eax, dword [ebp - 0x20]
cmp dword [ebp + eax*4 - 0xcc], 0
je 0x1004c643
mov dword [ebp - 0x80], 1
jmp 0x1004c647
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0x80]
jg 0x1004c664
cmp dword [ebp - 0x1c], 0
je 0x1004c664
mov dword [ebp - 0xa0], 1
jmp 0x1004c66b
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xdc], eax
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x1004c68d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x1004c338
jmp 0x1004c317
jmp 0x1004c2ef
jmp 0x1004c2ce
mov byte [ebp - 0x23], 0
movzx eax, byte [ebp - 0x23]
test eax, eax
je 0x1004c6cc
push 0
push 0
push 0x9c9
push 0
push 0x1540
push 0
push 0x2310
push 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004c979
mov dword [ebp - 0x14], 0x328f6c74
mov dword [ebp - 0x10], 0xbcd76ce4
mov dword [ebp - 0x40], 0x1ebf0ddd
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0x3c], 5
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x10c], 0x277ed469
mov dword [ebp - 0x30], 0
jmp 0x1004c726
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jge 0x1004c73c
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0xd8], 0xc0e84896
jmp 0x1004c71f
cmp dword [ebp - 0x14], 0
jne 0x1004c74e
cmp dword [ebp - 0x14], 0
jne 0x1004c74e
and dword [ebp - 0x44], 0
jmp 0x1004c755
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x44], 0x276b87d0
jl 0x1004c76a
mov dword [ebp - 0xb4], 1
jmp 0x1004c771
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xb4], eax
jge 0x1004c788
mov dword [ebp - 0x90], 1
jmp 0x1004c78f
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x14], eax
jl 0x1004c7a3
mov dword [ebp - 0xac], 1
jmp 0x1004c7aa
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0xac]
jl 0x1004c7c4
mov dword [ebp - 0xec], 1
jmp 0x1004c7cb
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x10], 0
jne 0x1004c7f2
mov eax, 0xdc1b6eab
test eax, eax
jne 0x1004c7f2
and dword [ebp - 0x60], 0
jmp 0x1004c7f9
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x14], eax
jl 0x1004c80d
mov dword [ebp - 0x98], 1
jmp 0x1004c814
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jne 0x1004c834
or eax, 0xffffffff
jne 0x1004c834
and dword [ebp - 0x78], 0
jmp 0x1004c83b
mov dword [ebp - 0x78], 1
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x1004c852
mov dword [ebp - 0x7c], 1
jmp 0x1004c856
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x3c], 0
je 0x1004c88f
cmp dword [ebp - 0x10], 0
je 0x1004c88f
mov dword [ebp - 0x84], 1
jmp 0x1004c896
and dword [ebp - 0x84], 0
cmp dword [ebp - 0x84], 5
jbe 0x1004c8ab
mov dword [ebp - 0x8c], 1
jmp 0x1004c8b2
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x93cc
jge 0x1004c8d0
mov dword [ebp - 0xd4], 1
jmp 0x1004c8d7
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x14], 0
je 0x1004c8fe
mov eax, 0xf2c6
test eax, eax
je 0x1004c8fe
cmp dword [ebp - 0x10], 0
je 0x1004c8fe
mov dword [ebp - 0x50], 1
jmp 0x1004c902
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x50]
add eax, 0x39ef5b50
je 0x1004c91b
cmp dword [ebp - 0x38], 0
je 0x1004c91b
mov dword [ebp - 0x58], 1
jmp 0x1004c91f
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x58], eax
je 0x1004c930
mov dword [ebp - 0x68], 1
jmp 0x1004c934
and dword [ebp - 0x68], 0
imul eax, dword [ebp - 0x60], 0xf813
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x68]
jle 0x1004c954
or eax, 0xffffffff
je 0x1004c954
mov dword [ebp - 0x70], 1
jmp 0x1004c958
and dword [ebp - 0x70], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x70]
mov dword [ebp + eax - 0xd8], ecx
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
jmp 0x1004c9a5
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
movzx eax, byte [eax]
test eax, eax
je 0x1004c9a5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esp, ebp
pop ebp
ret