Function at 0x1002eaa2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082a8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
push esi
mov dword [ebp - 0x10], 0x33efc07e
mov dword [ebp - 0x44], 0x1a7a81a8
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x200], 0xd580090a
mov dword [ebp - 0x1fc], 0xd580090a
mov dword [ebp - 0x1f8], 0xd580090a
mov dword [ebp - 0x1f4], 0xd580090a
lea ecx, [ebp - 0x99]
call fcn.10008f03
push eax
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x200]
push eax
lea ecx, [ebp - 0x26c]
call fcn.10017bd6
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x7c]
call fcn.10017b9c
and dword [ebp - 4], 0
mov dword [ebp - 0x20], 0xb8e00457
mov dword [ebp - 0x19c], 0
mov byte [ebp - 0x26], 0
movzx eax, byte [ebp - 0x26]
test eax, eax
je 0x1002eb5e
push 0x1fbf
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [ebp - 0x10], 0
jne 0x1002ece8
mov eax, 0xbc40
test eax, eax
je 0x1002ec69
cmp dword [ebp - 0x10], 0
jne 0x1002eb87
mov dword [ebp - 0x104], 1
jmp 0x1002eb8e
and dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x14], 0xbda18461
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
jl 0x1002ebd6
mov dword [ebp - 0x130], 1
jmp 0x1002ebdd
and dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x130], eax
je 0x1002ebf4
mov dword [ebp - 0x98], 1
jmp 0x1002ebfb
and dword [ebp - 0x98], 0
push 2
lea ecx, [ebp - 0x7c]
call fcn.10017bc7
mov ecx, dword [ebp - 0x98]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x98], eax
jge 0x1002ec24
mov dword [ebp - 0xa8], 1
jmp 0x1002ec2b
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0xa8]
cmp dword [ebp - 0x10], eax
je 0x1002ec46
mov dword [ebp - 0x134], 1
jmp 0x1002ec4d
and dword [ebp - 0x134], 0
mov eax, dword [ebp - 0x134]
sub eax, 0xfff8
cmp eax, dword [ebp - 0x10]
jne 0x1002ec69
mov dword [ebp - 0xb0], 1
jmp 0x1002ec70
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0xfffa
jne 0x1002ec88
mov dword [ebp - 0x13c], 1
jmp 0x1002ec8f
and dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x13c]
cmp eax, 0x5bea
jne 0x1002ecaa
push 2
lea ecx, [ebp - 0x7c]
call fcn.10017bc7
mov esi, dword [ebp - 0x10]
push 2
lea ecx, [ebp - 0x7c]
call fcn.10017bc7
cmp esi, dword [eax]
jge 0x1002ecc7
mov dword [ebp - 0xb8], 1
jmp 0x1002ecce
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x20], eax
je 0x1002ece8
and dword [ebp - 0x144], 0
jmp 0x1002ecf2
mov dword [ebp - 0x144], 1
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x144], eax
jne 0x1002ed09
mov dword [ebp - 0xc0], 1
jmp 0x1002ed10
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc0], eax
jg 0x1002ee37
mov dword [ebp - 0x190], 1
mov dword [ebp - 0x60], 0
jmp 0x1002ed39
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 1
jge 0x1002ed4c
mov eax, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0x64], 0x846c8c5c
jmp 0x1002ed32
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x64]
mov dword [ebp - 0x22c], eax
push 2
lea ecx, [ebp - 0x7c]
call fcn.10017bc7
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0x64]
cmp dword [eax], ecx
jge 0x1002ed80
mov dword [ebp - 0x14c], 1
jmp 0x1002ed87
and dword [ebp - 0x14c], 0
push 2
lea ecx, [ebp - 0x7c]
call fcn.10017bc7
push 0xfffffffffffffffd
pop ecx
sub ecx, dword [eax]
cmp ecx, dword [ebp - 0x14c]
jle 0x1002edb9
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x64], 0
jne 0x1002edb9
or eax, 0xffffffff
jne 0x1002edb9
and dword [ebp - 0x188], 0
jmp 0x1002edc3
mov dword [ebp - 0x188], 1
cmp dword [ebp - 0x14], 0x4d633c66
jne 0x1002edd8
mov dword [ebp - 0xc8], 1
jmp 0x1002eddf
and dword [ebp - 0xc8], 0
cmp dword [ebp - 0xc8], 0x1799
je 0x1002edf7
mov dword [ebp - 0x154], 1
jmp 0x1002edfe
and dword [ebp - 0x154], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x154]
sub ecx, dword [ebp + eax - 0x64]
cmp ecx, dword [ebp - 0x44]
jg 0x1002ee1f
mov dword [ebp - 0xd0], 1
jmp 0x1002ee26
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x190], eax
jmp 0x1002f43b
mov dword [ebp - 0x50], 0x8a82fb34
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1ec], 0xfffffffc
mov dword [ebp - 0x1e8], 0xfffffffc
mov dword [ebp - 0x1e4], 0xfffffffc
mov dword [ebp - 0x1e0], 0xfffffffc
lea ecx, [ebp - 0x8d]
call fcn.10008f03
push eax
lea eax, [ebp - 0x1dc]
push eax
lea eax, [ebp - 0x1ec]
push eax
lea ecx, [ebp - 0x264]
call fcn.10017bd6
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x244]
call fcn.10017b9c
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x6c], 0xe9dd3713
mov dword [ebp - 0x14], 0
jmp 0x1002eecb
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xe
jg 0x1002f2cd
mov dword [ebp - 0x5c], 0x993e3674
mov dword [ebp - 0x12c], 5
mov dword [ebp - 0x1c4], 0x8984295a
mov dword [ebp - 0x1c0], 0x8984295a
mov dword [ebp - 0x1bc], 0x8984295a
mov dword [ebp - 0x1b8], 0x8984295a
mov dword [ebp - 0xa0], 0x3bf95235
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x124], 0xde0c47fc
mov dword [ebp - 0x194], 1
mov eax, dword [ebp - 0x5c]
imul eax, dword [ebp - 0x5c]
cmp eax, 0x9b03
jg 0x1002ef50
mov dword [ebp - 0x140], 1
jmp 0x1002ef57
and dword [ebp - 0x140], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x1002ef72
cmp dword [ebp - 0x80], 0
jne 0x1002ef72
and dword [ebp - 0x15c], 0
jmp 0x1002ef7c
mov dword [ebp - 0x15c], 1
push 2
lea ecx, [ebp - 0x7c]
call fcn.10017bc7
imul ecx, dword [ebp - 0x15c], 5
cmp dword [eax], ecx
jg 0x1002ef9d
mov dword [ebp - 0xd8], 1
jmp 0x1002efa4
and dword [ebp - 0xd8], 0
cmp dword [ebp - 0xd8], 2
je 0x1002efb9
mov dword [ebp - 0x164], 1
jmp 0x1002efc0
and dword [ebp - 0x164], 0
push 2
lea ecx, [ebp - 0x7c]
call fcn.10017bc7
mov ecx, dword [ebp - 0x164]
cmp ecx, dword [eax]
jl 0x1002efe0
mov dword [ebp - 0x16c], 1
jmp 0x1002efe7
and dword [ebp - 0x16c], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x16c], eax
jle 0x1002effe
mov dword [ebp - 0x198], 1
jmp 0x1002f005
and dword [ebp - 0x198], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x2c], 0x77e1
jle 0x1002f023
mov dword [ebp - 0xe4], 1
jmp 0x1002f02a
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x50]
dec eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x1a0]
cmp eax, dword [ebp - 0x18c]
jle 0x1002f078
mov dword [ebp - 0xec], 1
jmp 0x1002f07f
and dword [ebp - 0xec], 0
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0xec]
mov dword [ebp + eax - 0x1c4], ecx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x238], eax
push 2
lea ecx, [ebp - 0x244]
call fcn.10017bc7
mov dword [eax], 0xb75c
mov eax, 0xb75c
test eax, eax
jne 0x1002f0c7
push 0xfffffffffffffff9
pop eax
test eax, eax
jne 0x1002f0c7
and dword [ebp - 0x170], 0
jmp 0x1002f0d1
mov dword [ebp - 0x170], 1
cmp dword [ebp - 0x170], 0xffffffff
jae 0x1002f0e6
mov dword [ebp - 0xf4], 1
jmp 0x1002f0ed
and dword [ebp - 0xf4], 0
cmp dword [ebp - 0xf4], 0x93cb
jl 0x1002f105
mov dword [ebp - 0x138], 1
jmp 0x1002f10c
and dword [ebp - 0x138], 0
imul eax, dword [ebp - 0x138], 0xfffd
cmp eax, dword [ebp - 0x34]
jl 0x1002f127
mov dword [ebp - 0xfc], 1
jmp 0x1002f12e
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x1002f156
push 4
pop eax
imul eax, eax, 3
cmp dword [ebp + eax - 0x1c4], 0
jne 0x1002f156
and dword [ebp - 0x158], 0
jmp 0x1002f160
mov dword [ebp - 0x158], 1
imul eax, dword [ebp - 0x158], 0x3634
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
cmp dword [ebp - 0x140], eax
jne 0x1002f196
mov dword [ebp - 0x10c], 1
jmp 0x1002f19d
and dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x10c]
jne 0x1002f1ba
mov eax, 0x2ae6ba14
test eax, eax
jne 0x1002f1ba
and dword [ebp - 0x168], 0
jmp 0x1002f1c4
mov dword [ebp - 0x168], 1
mov eax, dword [ebp - 0x168]
sub eax, 0xc22c
je 0x1002f1e6
mov eax, 0xc75f9279
test eax, eax
je 0x1002f1e6
mov dword [ebp - 0x114], 1
jmp 0x1002f1ed
and dword [ebp - 0x114], 0
push 2
lea ecx, [ebp - 0x7c]
call fcn.10017bc7
mov ecx, dword [ebp - 0x114]
imul ecx, dword [eax]
cmp ecx, 0xfff8
jbe 0x1002f214
mov dword [ebp - 0x148], 1
jmp 0x1002f21b
and dword [ebp - 0x148], 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.10017bc7
mov ecx, dword [ebp - 0x148]
cmp ecx, dword [eax]
jg 0x1002f23b
mov dword [ebp - 0x11c], 1
jmp 0x1002f242
and dword [ebp - 0x11c], 0
cmp dword [ebp - 0x11c], 0xffffffff
jb 0x1002f266
push 2
lea ecx, [ebp - 0x7c]
call fcn.10017bc7
cmp dword [eax], 0
je 0x1002f266
mov dword [ebp - 0x160], 1
jmp 0x1002f26d
and dword [ebp - 0x160], 0
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x124], eax
jle 0x1002f296
cmp dword [ebp - 0x84], 0
jne 0x1002f296
and dword [ebp - 0x150], 0
jmp 0x1002f2a0
mov dword [ebp - 0x150], 1
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x2c]
push eax
push 0x5d84
push 0x5ea2
lea eax, [ebp - 0x194]
push eax
push 1
call fcn.1002e39b
add esp, 0x14
jmp 0x1002eec4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x6c], 0
je 0x1002f2f1
cmp dword [ebp - 0x14], 0x2083236d
jg 0x1002f2f1
mov dword [ebp - 0xdc], 1
jmp 0x1002f2f8
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x20]
cmp eax, 0xd4c7
jne 0x1002f31a
mov dword [ebp - 0x1b0], 1
jmp 0x1002f321
and dword [ebp - 0x1b0], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x50], eax
jne 0x1002f335
mov dword [ebp - 0xe0], 1
jmp 0x1002f33c
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x19c]
je 0x1002f365
mov eax, 0xb9bd427a
test eax, eax
je 0x1002f365
mov dword [ebp - 0xe8], 1
jmp 0x1002f36c
and dword [ebp - 0xe8], 0
cmp dword [ebp - 0xe8], 5
jle 0x1002f387
cmp dword [ebp - 0x20], 0
je 0x1002f387
mov dword [ebp - 0xf0], 1
jmp 0x1002f38e
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0xf0]
je 0x1002f3a5
mov dword [ebp - 0xf8], 1
jmp 0x1002f3ac
and dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0xf8]
sub eax, dword [ebp - 0x20]
cmp eax, 0xfffc
ja 0x1002f3c8
mov dword [ebp - 0x100], 1
jmp 0x1002f3cf
and dword [ebp - 0x100], 0
cmp dword [ebp - 0x100], 0
jge 0x1002f410
mov dword [ebp - 0x58], 0
jmp 0x1002f3e8
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 2
jge 0x1002f3fe
mov eax, dword [ebp - 0x58]
mov dword [ebp + eax*4 - 0x27c], 0xb2f251b4
jmp 0x1002f3e1
push 2
lea ecx, [ebp - 0x7c]
call fcn.10017bc7
mov dword [eax], 1
jmp 0x1002f42c
mov byte [ebp - 0x28], 0
push 0xd59
lea eax, [ebp - 0x28]
push eax
push 0x6eee
push 1
call fcn.1002e406
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.10017bc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.10017bc2
jmp 0x1002f463
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x1002fb19
mov dword [ebp - 0x48], 0xfffffffd
mov dword [ebp - 0x48], 0
jmp 0x1002f488
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x1b
je 0x1002f54f
push 2
lea ecx, [ebp - 0x20c]
call fcn.10017b3d
mov dword [ebp - 4], 2
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x4c], 0
jmp 0x1002f4bd
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 2
jge 0x1002f4d9
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x20c]
call fcn.10017bc7
mov dword [eax], 0xba2afe01
jmp 0x1002f4b6
mov dword [ebp - 0x38], 1
jmp 0x1002f4e9
mov eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jl 0x1002f527
mov byte [ebp - 0x22], 0
push 1
push 0x7c34
push 0x4ec7
push 0x6e7d
lea eax, [ebp - 0x22]
push eax
call fcn.1002e57b
add esp, 0x14
push dword [ebp - 0x38]
lea ecx, [ebp - 0x20c]
call fcn.10017bc7
cmp dword [eax], 0
je 0x1002f525
jmp 0x1002f4e2
jmp 0x1002f4e2
push 1
push 0x5846
push 0x4b21
call fcn.1002e5e2
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.10017bc2
jmp 0x1002f481
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
and eax, 0x80000000
je 0x1002f6c2
mov dword [ebp - 0x1d8], 0xfffffff7
mov dword [ebp - 0x1d4], 0xfffffff7
mov dword [ebp - 0x1d0], 0xfffffff7
mov dword [ebp - 0x1cc], 0xfffffff7
lea ecx, [ebp - 0x85]
call fcn.10008f03
push eax
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x274]
call fcn.10017bd6
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x224]
call fcn.10017b9c
mov dword [ebp - 4], 3
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x40], 0
jmp 0x1002f5dc
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 3
jg 0x1002f682
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x30], 0
jmp 0x1002f5fd
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jg 0x1002f67d
mov dword [ebp - 0x68], 0xcf09cc25
mov byte [ebp - 0x23], 0
movzx eax, byte [ebp - 0x23]
test eax, eax
je 0x1002f62a
push 0x3152
push 0x3c76
push 1
call fcn.1002e648
add esp, 0xc
mov dword [ebp - 0x68], 0
jmp 0x1002f63a
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 3
jg 0x1002f678
push dword [ebp - 0x30]
lea ecx, [ebp - 0x224]
call fcn.10017bc7
mov esi, eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x224]
call fcn.10017bc7
mov ecx, dword [esi]
mov dword [eax], ecx
mov byte [ebp - 0x25], 0
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x1002f676
push 1
call fcn.1002e6ad
pop ecx
jmp 0x1002f633
jmp 0x1002f5f6
jmp 0x1002f5d5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.10017bc2
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
and eax, 0xffff
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push 0x2c94
push 0x3000
call fcn.100256ba
pop ecx
pop ecx
call eax
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dword [ecx], eax
jmp 0x1002f884
mov dword [ebp - 0x70], 0x7e2799ac
mov dword [ebp - 0x1a8], 0x8b8ae505
mov dword [ebp - 0x70], 0
jmp 0x1002f6e3
mov eax, dword [ebp - 0x70]
dec eax
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0xffffffee
je 0x1002f84c
mov dword [ebp - 0x1c], 0xe8b72fd4
mov dword [ebp - 0x1c], 0xfffffff3
jmp 0x1002f704
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffea
je 0x1002f818
mov dword [ebp - 0x54], 0x9d19ac19
mov byte [ebp - 0x27], 0
movzx eax, byte [ebp - 0x27]
test eax, eax
je 0x1002f735
push 1
push 0x3d5a
push 0x66c4
call fcn.1002e6fa
add esp, 0xc
mov dword [ebp - 0x54], 4
jmp 0x1002f745
mov eax, dword [ebp - 0x54]
dec eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffe7
jne 0x1002f813
push 2
lea ecx, [ebp - 0x218]
call fcn.10017b3d
mov dword [ebp - 4], 4
lea eax, [ebp - 0x218]
push eax
push 1
lea eax, [ebp - 0x3c]
push eax
push 0x53f6
call fcn.1002e761
add esp, 0x10
mov dword [ebp - 0x3c], 0
jmp 0x1002f78d
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jge 0x1002f7a3
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x178], 0xfffffff6
jmp 0x1002f786
push 0
lea ecx, [ebp - 0x218]
call fcn.10017bc7
mov dword [eax], 0x8872fa4
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x178], 0
jmp 0x1002f7e4
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x178]
dec eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x178], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x178], 0xffffffe6
jg 0x1002f7ff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1a8], eax
jmp 0x1002f7c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.10017bc2
jmp 0x1002f73e
jmp 0x1002f6fd
mov dword [ebp - 0x1c], 0xfffffffd
jmp 0x1002f828
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1a
jg 0x1002f847
mov byte [ebp - 0x21], 0
push 0x3116
push 1
lea eax, [ebp - 0x21]
push eax
call fcn.1002e7e4
add esp, 0xc
jmp 0x1002f821
jmp 0x1002f6dc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax]
mov dword [ebp - 0x1a4], ecx
mov eax, dword [ebp - 0x1a4]
inc eax
inc eax
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push 0x2c94
push 0x3000
call fcn.100256ba
pop ecx
pop ecx
call eax
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
mov dword [ecx], eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x8c], 0x1078
mov dword [ebp - 0x108], 0x4caa8e55
mov dword [ebp - 0x94], 0xe56e31bb
push 3
lea ecx, [ebp - 0x184]
call fcn.10017b3d
mov dword [ebp - 4], 5
mov dword [ebp - 0x1b4], 0x5661c443
lea eax, [ebp - 0x184]
push eax
push 0x71f5
lea eax, [ebp - 0x228]
push eax
push 0x32d6
push 0x1e28
push 1
call fcn.1002e840
add esp, 0x18
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x108], eax
jle 0x1002f917
cmp dword [ebp - 0x18], 0
je 0x1002f917
mov dword [ebp - 0x110], 1
jmp 0x1002f91e
and dword [ebp - 0x110], 0
cmp dword [ebp - 0x110], 0xbe92e3f9
jne 0x1002f936
mov dword [ebp - 0x118], 1
jmp 0x1002f93d
and dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x118], eax
je 0x1002f954
mov dword [ebp - 0x120], 1
jmp 0x1002f95b
and dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x120], eax
jl 0x1002f972
mov dword [ebp - 0x128], 1
jmp 0x1002f979
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x128], eax
jle 0x1002f990
mov dword [ebp - 0xa4], 1
jmp 0x1002f997
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0xa4], eax
jne 0x1002f9b1
mov dword [ebp - 0xac], 1
jmp 0x1002f9b8
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xac]
jg 0x1002f9cf
mov dword [ebp - 0xb4], 1
jmp 0x1002f9d6
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x94], eax
jle 0x1002fa11
mov dword [ebp - 0xbc], 1
jmp 0x1002fa18
and dword [ebp - 0xbc], 0
mov esi, dword [ebp - 0x18]
push 1
lea ecx, [ebp - 0x184]
call fcn.10017bc7
mov ecx, dword [ebp - 0xbc]
add ecx, dword [eax]
cmp esi, ecx
jl 0x1002fa40
mov dword [ebp - 0xc4], 1
jmp 0x1002fa47
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
push 1
lea ecx, [ebp - 0x184]
call fcn.10017bc7
imul esi, dword [eax]
push 1
lea ecx, [ebp - 0x184]
call fcn.10017bc7
cmp esi, dword [eax]
jge 0x1002fa80
mov dword [ebp - 0xcc], 1
jmp 0x1002fa87
and dword [ebp - 0xcc], 0
push 2
lea ecx, [ebp - 0x184]
call fcn.10017bc7
mov ecx, dword [ebp - 0xcc]
cmp ecx, dword [eax]
jle 0x1002faaa
mov dword [ebp - 0xd4], 1
jmp 0x1002fab1
and dword [ebp - 0xd4], 0
cmp dword [ebp - 0xd4], 0xffffffff
jl 0x1002fac6
mov dword [ebp - 0x1ac], 1
jmp 0x1002facd
and dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1b4], 0x37d437f1
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 0x60c9
push 1
push 0x185d
call fcn.1002ea14
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x184]
call fcn.10017bc2
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x1002fb14
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x1002fb19
jmp 0x1002f449
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret