Function at 0x100590c2
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f26e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push esi
mov dword [ebp - 0x10], 0x890
push 1
lea ecx, [ebp - 0x284]
call fcn.10019c20
and dword [ebp - 4], 0
mov dword [ebp - 0x50], 0xaaf7cc73
mov dword [ebp - 0x108], 0x7c7a5019
mov dword [ebp - 0xb4], 0
jmp 0x10059123
mov eax, dword [ebp - 0xb4]
inc eax
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 1
jge 0x10059145
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x284]
call fcn.10019cac
mov dword [eax], 0xfffffff9
jmp 0x10059116
cmp dword [ebp - 0x10], 0
je 0x10059311
mov dword [ebp - 0x10], 0
jmp 0x1005915f
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x36
jge 0x100592e4
push 3
lea ecx, [ebp - 0x274]
call fcn.10019c20
mov byte [ebp - 4], 1
mov dword [ebp - 0xb8], 0
jmp 0x10059193
mov eax, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 3
jge 0x100591b5
push dword [ebp - 0xb8]
lea ecx, [ebp - 0x274]
call fcn.10019cac
mov dword [eax], 0x54fddd3f
jmp 0x10059186
push 0
lea ecx, [ebp - 0x274]
call fcn.10019cac
and dword [eax], 0
jmp 0x100591eb
push 0
lea ecx, [ebp - 0x274]
call fcn.10019cac
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x204]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x204]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x274]
call fcn.10019cac
cmp dword [eax], 0x1b
je 0x100592d0
mov dword [ebp - 0xa4], 0xfffffff9
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0xa4], 0
jmp 0x1005922e
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0x11
jg 0x100592cb
mov dword [ebp - 0x84], 0
jmp 0x10059254
mov eax, dword [ebp - 0x84]
inc eax
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 4
jge 0x10059270
mov eax, dword [ebp - 0x84]
mov dword [ebp + eax*4 - 0x2d4], 0xffffffff
jmp 0x10059247
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x2d4], 0
jmp 0x1005929e
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x2d4]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x2d4], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x2d4], 0xffffffe7
je 0x100592c6
mov dword [ebp - 0x22c], 0xffffffff
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x23c], eax
jmp 0x10059283
jmp 0x10059221
jmp 0x100591c7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.10019ca7
jmp 0x10059158
mov byte [ebp - 0x4a], 0
movzx eax, byte [ebp - 0x4a]
test eax, eax
je 0x1005930c
push 0x2554
push 0x6a3
push 0xbf3
push 0x1320
push 0
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
jmp 0x1005967f
mov dword [ebp - 0x2c4], 6
mov dword [ebp - 0x2c0], 6
mov dword [ebp - 0x2bc], 6
mov dword [ebp - 0x2b8], 6
push 3
lea ecx, [ebp - 0x228]
call fcn.10019c20
mov byte [ebp - 4], 2
push 4
lea ecx, [ebp - 0x2a8]
call fcn.10019c20
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 0
jmp 0x1005936b
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x10059384
push dword [ebp - 0x14]
lea ecx, [ebp - 0x228]
call fcn.10019cac
and dword [eax], 0
jmp 0x10059364
mov dword [ebp - 0x14], 0
jmp 0x10059394
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x100593aa
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x24c], 1
jmp 0x1005938d
mov dword [ebp - 0x14], 0
jmp 0x100593ba
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jge 0x100593d6
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2a8]
call fcn.10019cac
mov dword [eax], 0x52ee8b72
jmp 0x100593b3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x214], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x214]
mov dword [ebp + eax - 0x2c4], ecx
cmp dword [ebp - 0x214], 0
jne 0x10059455
cmp dword [ebp - 0x10], 0
je 0x10059438
cmp dword [ebp - 0x10], 0
je 0x10059419
cmp dword [ebp - 0x10], 0
je 0x10059419
mov dword [ebp - 0x21c], 1
jmp 0x10059420
and dword [ebp - 0x21c], 0
cmp dword [ebp - 0x21c], 0x4f68
je 0x10059438
mov dword [ebp - 0x1b8], 1
jmp 0x1005943f
and dword [ebp - 0x1b8], 0
mov eax, dword [ebp - 0x1b8]
add eax, 0xc5a7
jne 0x10059455
and dword [ebp - 0x180], 0
jmp 0x1005945f
mov dword [ebp - 0x180], 1
push 0
lea ecx, [ebp - 0x284]
call fcn.10019cac
mov ecx, dword [ebp - 0x180]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2e8], eax
push 2
lea ecx, [ebp - 0x228]
call fcn.10019cac
mov ecx, dword [ebp - 0x10]
cmp dword [eax], ecx
je 0x100594ac
push 2
lea ecx, [ebp - 0x228]
call fcn.10019cac
cmp dword [eax], 0
jne 0x100594ac
and dword [ebp - 0xe8], 0
jmp 0x100594b6
mov dword [ebp - 0xe8], 1
push 1
lea ecx, [ebp - 0x228]
call fcn.10019cac
mov ecx, dword [ebp - 0xe8]
cmp ecx, dword [eax]
jl 0x100594d9
mov dword [ebp - 0x188], 1
jmp 0x100594e0
and dword [ebp - 0x188], 0
cmp dword [ebp - 0x188], 0xfffffffa
jge 0x10059507
push 0
lea ecx, [ebp - 0x284]
call fcn.10019cac
cmp dword [eax], 0
je 0x10059507
mov dword [ebp - 0xf0], 1
jmp 0x1005950e
and dword [ebp - 0xf0], 0
push 0
lea ecx, [ebp - 0x228]
call fcn.10019cac
mov ecx, dword [ebp - 0xf0]
cmp ecx, dword [eax]
jle 0x10059531
mov dword [ebp - 0x190], 1
jmp 0x10059538
and dword [ebp - 0x190], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x190], eax
jg 0x1005954f
mov dword [ebp - 0xf8], 1
jmp 0x10059556
and dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xf8], eax
jge 0x1005956d
mov dword [ebp - 0x198], 1
jmp 0x10059574
and dword [ebp - 0x198], 0
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x198], eax
jge 0x1005958b
mov dword [ebp - 0x100], 1
jmp 0x10059592
and dword [ebp - 0x100], 0
cmp dword [ebp - 0x100], 0xce570888
je 0x100595aa
mov dword [ebp - 0x1a0], 1
jmp 0x100595b1
and dword [ebp - 0x1a0], 0
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x1a0], eax
jle 0x100595c8
mov dword [ebp - 0x244], 1
jmp 0x100595cf
and dword [ebp - 0x244], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x108], 0xfffffffe
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x1a8], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp + eax - 0x24c], ecx
cmp dword [ebp - 0x1a8], 0xfffffffd
ja 0x10059616
mov dword [ebp - 0x110], 1
jmp 0x1005961d
and dword [ebp - 0x110], 0
mov esi, dword [ebp - 0x10]
imul esi, dword [ebp - 0x110]
push 2
lea ecx, [ebp - 0x2a8]
call fcn.10019cac
mov dword [eax], esi
mov dword [ebp - 0x50], 7
jmp 0x10059646
mov eax, dword [ebp - 0x50]
dec eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xfffffffc
jne 0x10059661
push 0
lea ecx, [ebp - 0x284]
call fcn.10019cac
mov dword [eax], 0x700c0d35
jmp 0x1005963f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a8]
call fcn.10019ca7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.10019ca7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.10019ca7
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10059a32
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x1c], 0
jmp 0x100596b8
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
je 0x10059709
mov dword [ebp - 0xa8], 0xfffffff7
mov dword [ebp - 0xa8], 0xffffffe2
jmp 0x100596e1
mov eax, dword [ebp - 0xa8]
inc eax
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0x1a
jl 0x10059707
mov byte [ebp - 0x49], 0
movzx eax, byte [ebp - 0x49]
test eax, eax
je 0x10059705
push 0x157e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x100596d4
jmp 0x100596b1
mov dword [ebp - 0x1c], 0
jmp 0x10059719
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xfffffffc
jne 0x100599e3
mov dword [ebp - 0x38], 0x2c36544d
mov dword [ebp - 0x20], 0xbc106ec6
mov dword [ebp - 0xc8], 0x4801465e
cmp dword [ebp - 0x1c], 0
jne 0x10059758
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
jne 0x10059758
and dword [ebp - 0x1b0], 0
jmp 0x10059762
mov dword [ebp - 0x1b0], 1
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x38], 0x10
jmp 0x1005977b
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x1c
jle 0x100599de
mov dword [ebp - 0x64], 0x9df9481f
mov dword [ebp - 0x8c], 0
jmp 0x100597a5
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 1
jge 0x100597c1
mov eax, dword [ebp - 0x8c]
mov dword [ebp + eax*4 - 0x254], 0xffffffff
jmp 0x10059798
mov eax, 0xf048
test eax, eax
je 0x100598ff
cmp dword [ebp - 0x38], 0
jne 0x100597e0
mov dword [ebp - 0x1cc], 1
jmp 0x100597e7
and dword [ebp - 0x1cc], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x300], eax
cmp dword [ebp - 0x1c], 0x7430
jg 0x10059811
mov dword [ebp - 0x118], 1
jmp 0x10059818
and dword [ebp - 0x118], 0
mov eax, dword [ebp - 0xc8]
cmp dword [ebp - 0x118], eax
jl 0x10059832
mov dword [ebp - 0x1bc], 1
jmp 0x10059839
and dword [ebp - 0x1bc], 0
imul eax, dword [ebp - 0x1bc], 0
test eax, eax
je 0x1005985f
cmp dword [ebp - 0xc8], 0
je 0x1005985f
cmp dword [ebp - 0x1c], 0
je 0x1005985f
mov dword [ebp - 0x120], 1
jmp 0x10059866
and dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x20], eax
jle 0x10059883
mov dword [ebp - 0x1c4], 1
jmp 0x1005988a
and dword [ebp - 0x1c4], 0
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1c4]
jge 0x100598a1
mov dword [ebp - 0x128], 1
jmp 0x100598a8
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x128]
jne 0x100598bf
mov dword [ebp - 0x130], 1
jmp 0x100598c6
and dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x1cc]
cmp eax, dword [ebp - 0x130]
jg 0x100598e0
mov dword [ebp - 0x1d4], 1
jmp 0x100598e7
and dword [ebp - 0x1d4], 0
cmp dword [ebp - 0x1d4], 0xcb7b
jg 0x100598ff
mov dword [ebp - 0x138], 1
jmp 0x10059906
and dword [ebp - 0x138], 0
cmp dword [ebp - 0x138], 0x95e1
je 0x10059918
cmp dword [ebp - 0x54], 0
je 0x1005992e
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x254], 1
jmp 0x100599d9
mov dword [ebp - 0x1dc], 0xffffffff
mov dword [ebp - 0x20], 0
jmp 0x10059948
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jg 0x100599b5
mov dword [ebp - 0x54], 0
jmp 0x1005995e
mov eax, dword [ebp - 0x54]
dec eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x100599b3
mov dword [ebp - 0x64], 0
jmp 0x10059974
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jg 0x10059997
mov byte [ebp - 0x3a], 0
movzx eax, byte [ebp - 0x3a]
test eax, eax
je 0x10059995
push 0x622
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x1005996d
mov byte [ebp - 0x39], 0
movzx eax, byte [ebp - 0x39]
test eax, eax
je 0x100599b1
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
jmp 0x10059957
jmp 0x10059941
mov dword [ebp - 0x20], 0xfffffff0
jmp 0x100599c5
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xfffffff9
jl 0x100599d9
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1dc], eax
jmp 0x100599be
jmp 0x10059774
jmp 0x10059712
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x234], eax
push 0
mov ecx, dword [ebp - 0x234]
call fcn.10019cac
push dword [eax]
mov ecx, dword [ebp - 0x238]
call fcn.10019cac
mov dword [eax], 0x5cbd9454
jmp 0x1005a90a
mov dword [ebp - 0x268], 4
mov dword [ebp - 0xcc], 0xdfddae97
mov dword [ebp - 0x140], 0x5706b379
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x2c], 0
jmp 0x10059a6a
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jge 0x10059a80
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x200], 0xd9e2a8d3
jmp 0x10059a63
mov dword [ebp - 0x2c], 0
jmp 0x10059a90
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jge 0x10059aa6
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x20c], 0xfffffff6
jmp 0x10059a89
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x200], 0
je 0x10059af1
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x200], 0
jne 0x10059ad5
mov eax, dword [ebp - 0xcc]
dec eax
mov dword [ebp - 0xcc], eax
je 0x10059af1
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x20c], 0
je 0x10059af1
mov dword [ebp - 0x1ec], 1
jmp 0x10059af8
and dword [ebp - 0x1ec], 0
mov eax, dword [ebp - 0x140]
cmp dword [ebp - 0x140], eax
jg 0x10059b12
mov dword [ebp - 0x1e4], 1
jmp 0x10059b19
and dword [ebp - 0x1e4], 0
cmp dword [ebp - 0x1e4], 0x4cff
je 0x10059b31
mov dword [ebp - 0x148], 1
jmp 0x10059b38
and dword [ebp - 0x148], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x200]
cmp dword [ebp - 0x148], eax
jg 0x10059b59
mov dword [ebp - 0x1f4], 1
jmp 0x10059b60
and dword [ebp - 0x1f4], 0
mov eax, dword [ebp - 0x1ec]
cmp eax, dword [ebp - 0x1f4]
jg 0x10059b7a
mov dword [ebp - 0x154], 1
jmp 0x10059b81
and dword [ebp - 0x154], 0
mov eax, dword [ebp - 0x268]
cmp dword [ebp - 0x154], eax
jge 0x10059b9b
mov dword [ebp - 0x1b4], 1
jmp 0x10059ba2
and dword [ebp - 0x1b4], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x200]
cmp dword [ebp - 0x1b4], eax
jl 0x10059bc3
mov dword [ebp - 0x15c], 1
jmp 0x10059bca
and dword [ebp - 0x15c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20c]
imul eax, dword [ebp - 0x15c]
cmp eax, 0xa624cdb8
ja 0x10059bf1
mov dword [ebp - 0x1e8], 1
jmp 0x10059bf8
and dword [ebp - 0x1e8], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20c]
cmp dword [ebp - 0x1e8], eax
jne 0x10059c19
mov dword [ebp - 0x164], 1
jmp 0x10059c20
and dword [ebp - 0x164], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20c]
add eax, dword [ebp - 0x164]
mov dword [ebp - 0x1c0], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x200]
cmp dword [ebp - 0x1c0], eax
je 0x10059c5a
mov dword [ebp - 0x16c], 1
jmp 0x10059c61
and dword [ebp - 0x16c], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x16c]
mov dword [ebp + eax - 0x20c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x1c8], 0x3ff14eb4
mov dword [ebp - 0x184], 0xc0de
mov dword [ebp - 0x28], 1
push 2
lea ecx, [ebp - 0x2f4]
call fcn.10019c20
mov dword [ebp - 4], 4
mov dword [ebp - 0xac], 0
jmp 0x10059ccc
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 2
jge 0x10059cee
push dword [ebp - 0xac]
lea ecx, [ebp - 0x2f4]
call fcn.10019cac
mov dword [eax], 0x6bb64548
jmp 0x10059cbf
cmp dword [ebp - 0x34], 0
je 0x10059eee
push 1
lea ecx, [ebp - 0x2b4]
call fcn.10019c20
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], 0
jmp 0x10059d19
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x10059d2c
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x40], 0xde2167fa
jmp 0x10059d12
mov dword [ebp - 0x18], 0
jmp 0x10059d3c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x10059d58
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2b4]
call fcn.10019cac
mov dword [eax], 0x1466
jmp 0x10059d35
mov dword [ebp - 0x18], 0
jmp 0x10059d68
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x10059d7e
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x318], 0xfffffffb
jmp 0x10059d61
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x40], 0
jne 0x10059da7
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x40], 0
je 0x10059d9e
cmp dword [ebp - 0x34], 0
jne 0x10059da7
and dword [ebp - 0xdc], 0
jmp 0x10059db1
mov dword [ebp - 0xdc], 1
cmp dword [ebp - 0xdc], 0xc99c
jne 0x10059dd6
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x40], 0
je 0x10059dd6
mov dword [ebp - 0x174], 1
jmp 0x10059ddd
and dword [ebp - 0x174], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x40]
mov dword [ebp - 0x1c8], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x40]
imul eax, dword [ebp - 0x174]
cmp dword [ebp - 0x1c8], eax
jl 0x10059e1b
mov eax, 0x856dfc9b
test eax, eax
je 0x10059e1b
mov dword [ebp - 0x17c], 1
jmp 0x10059e22
and dword [ebp - 0x17c], 0
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x17c]
cmp eax, dword [ebp - 0x184]
jge 0x10059e3f
mov dword [ebp - 0x1f0], 1
jmp 0x10059e46
and dword [ebp - 0x1f0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x40]
imul eax, dword [ebp - 0x1f0]
cmp eax, dword [ebp - 0x184]
jne 0x10059e6b
mov dword [ebp - 0x1d0], 1
jmp 0x10059e72
and dword [ebp - 0x1d0], 0
push 0
lea ecx, [ebp - 0x2b4]
call fcn.10019cac
mov ecx, dword [ebp - 0x1d0]
cmp ecx, dword [eax]
jle 0x10059e95
mov dword [ebp - 0x18c], 1
jmp 0x10059e9c
and dword [ebp - 0x18c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x40]
cmp eax, dword [ebp - 0x18c]
jg 0x10059eba
mov dword [ebp - 0x218], 1
jmp 0x10059ec1
and dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x28], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp + eax - 0x318], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.10019ca7
jmp 0x10059ff9
mov byte [ebp - 0x41], 0
movzx eax, byte [ebp - 0x41]
test eax, eax
je 0x10059f0f
push 0
push 0x1600
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x34], 0xd
jmp 0x10059f1f
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffe6
jge 0x10059ff9
mov dword [ebp - 0x68], 0
push 3
lea ecx, [ebp - 0x294]
call fcn.10019c20
mov byte [ebp - 4], 6
mov dword [ebp - 0x94], 0
jmp 0x10059f5a
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 3
jge 0x10059f7c
push dword [ebp - 0x94]
lea ecx, [ebp - 0x294]
call fcn.10019cac
mov dword [eax], 0x638299fa
jmp 0x10059f4d
cmp dword [ebp - 0x68], 0
je 0x10059f93
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x294]
call fcn.10019ca7
jmp 0x10059ff9
mov dword [ebp - 0x68], 0xfffffffd
jmp 0x10059fa3
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xd
jne 0x10059fe5
mov dword [ebp - 0x28], 2
jmp 0x10059fb9
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x10059fe3
push dword [ebp - 0x28]
lea ecx, [ebp - 0x294]
call fcn.10019cac
mov esi, eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x294]
call fcn.10019cac
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x10059fb2
jmp 0x10059f9c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x294]
call fcn.10019ca7
jmp 0x10059f18
mov dword [ebp - 0x28], 1
jmp 0x1005a009
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x1005a027
mov byte [ebp - 0x3b], 0
movzx eax, byte [ebp - 0x3b]
test eax, eax
je 0x1005a025
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
jmp 0x1005a002
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f4]
call fcn.10019ca7
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x260], eax
push 3
lea ecx, [ebp - 0xd8]
call fcn.10019c20
mov dword [ebp - 4], 7
mov dword [ebp - 0x1a4], 0x2f7f1c74
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2e0], 0xfffffffe
mov dword [ebp - 0x78], 0
jmp 0x1005a07e
mov eax, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 3
jge 0x1005a09a
push dword [ebp - 0x78]
lea ecx, [ebp - 0xd8]
call fcn.10019cac
mov dword [eax], 0xfffffffd
jmp 0x1005a077
push 0
lea ecx, [ebp - 0xd8]
call fcn.10019cac
and dword [eax], 0
jmp 0x1005a0d0
push 0
lea ecx, [ebp - 0xd8]
call fcn.10019cac
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x194]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x194]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0xd8]
call fcn.10019cac
cmp dword [eax], 0xfffffff6
jl 0x1005a65c
push 2
lea ecx, [ebp - 0x74]
call fcn.10019c20
mov byte [ebp - 4], 8
mov dword [ebp - 0x58], 0x5912491e
mov dword [ebp - 0x88], 0xc37069e5
mov dword [ebp - 0x9c], 0
jmp 0x1005a11e
mov eax, dword [ebp - 0x9c]
inc eax
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 2
jge 0x1005a13d
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x74]
call fcn.10019cac
mov dword [eax], 0x654f
jmp 0x1005a111
push 2
lea ecx, [ebp - 0xd8]
call fcn.10019cac
cmp dword [eax], 0
je 0x1005a160
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
call fcn.10019ca7
jmp 0x1005a65c
mov dword [ebp - 0x58], 0
jmp 0x1005a170
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 1
jg 0x1005a64b
push 3
lea ecx, [ebp - 0xc4]
call fcn.10019c20
mov byte [ebp - 4], 9
mov dword [ebp - 0x298], 0x6866
mov dword [ebp - 0xb0], 0
jmp 0x1005a1ae
mov eax, dword [ebp - 0xb0]
inc eax
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 3
jge 0x1005a1d0
push dword [ebp - 0xb0]
lea ecx, [ebp - 0xc4]
call fcn.10019cac
mov dword [eax], 2
jmp 0x1005a1a1
push 1
lea ecx, [ebp - 0xc4]
call fcn.10019cac
mov dword [eax], 1
jmp 0x1005a209
push 1
lea ecx, [ebp - 0xc4]
call fcn.10019cac
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x1d8]
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0xc4]
call fcn.10019cac
cmp dword [eax], 0
jl 0x1005a637
mov dword [ebp - 0x30], 0x91df82
mov dword [ebp - 0x60], 8
mov dword [ebp - 0x30], 0
jmp 0x1005a23d
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jg 0x1005a632
mov dword [ebp - 0x80], 0x2c6eb81f
mov dword [ebp - 0x178], 0xf60517e4
mov dword [ebp - 0x278], 0xbe831782
push 1
lea ecx, [ebp - 0xc4]
call fcn.10019cac
push dword [eax]
lea ecx, [ebp - 0x74]
call fcn.10019cac
push 1
lea ecx, [ebp - 0xc4]
call fcn.10019cac
push dword [eax]
lea ecx, [ebp - 0x74]
call fcn.10019cac
push 1
lea ecx, [ebp - 0xc4]
call fcn.10019cac
push dword [eax]
lea ecx, [ebp - 0x74]
call fcn.10019cac
mov dword [ebp - 0x80], 1
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x304], eax
push 1
lea ecx, [ebp - 0x74]
call fcn.10019cac
push 0
lea ecx, [ebp - 0x74]
call fcn.10019cac
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x2d8], eax
push 1
lea ecx, [ebp - 0x74]
call fcn.10019cac
mov eax, 0x708880d0
test eax, eax
je 0x1005a50e
mov dword [ebp - 0x7c], 0
jmp 0x1005a2fb
mov eax, dword [ebp - 0x7c]
inc eax
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 4
jge 0x1005a311
mov eax, dword [ebp - 0x7c]
mov dword [ebp + eax*4 - 0x328], 0xa5cd
jmp 0x1005a2f4
cmp dword [ebp - 0x30], 0xffffffff
je 0x1005a323
mov dword [ebp - 0x210], 1
jmp 0x1005a32a
and dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x88]
cmp dword [ebp - 0x30], eax
jl 0x1005a341
mov dword [ebp - 0x19c], 1
jmp 0x1005a348
and dword [ebp - 0x19c], 0
push 1
lea ecx, [ebp - 0xd8]
call fcn.10019cac
mov ecx, dword [ebp - 0x19c]
cmp ecx, dword [eax]
jne 0x1005a36b
mov dword [ebp - 0x1f8], 1
jmp 0x1005a372
and dword [ebp - 0x1f8], 0
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x1005a39a
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x328], 0
push 1
lea ecx, [ebp - 0xc4]
call fcn.10019cac
push dword [eax]
lea ecx, [ebp - 0x74]
call fcn.10019cac
push 0
lea ecx, [ebp - 0xd8]
call fcn.10019cac
cmp dword [eax], 0x79c93506
jg 0x1005a3d2
mov dword [ebp - 0x1e0], 1
jmp 0x1005a3d9
and dword [ebp - 0x1e0], 0
mov eax, dword [ebp - 0x1e0]
sub eax, dword [ebp - 0x30]
je 0x1005a3e8
cmp dword [ebp - 0x60], 0
cmp dword [ebp - 0x88], 0xfffffffd
jl 0x1005a3fd
mov dword [ebp - 0x1ac], 1
jmp 0x1005a404
and dword [ebp - 0x1ac], 0
push 1
lea ecx, [ebp - 0xc4]
call fcn.10019cac
push dword [eax]
lea ecx, [ebp - 0x74]
call fcn.10019cac
mov esi, eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x74]
call fcn.10019cac
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [ebp - 0x80], 0x47bf
imul eax, dword [ebp - 0x80], 0xffff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x178]
cmp dword [ebp - 0x24], eax
jne 0x1005a454
mov dword [ebp - 0x14c], 1
jmp 0x1005a45b
and dword [ebp - 0x14c], 0
mov eax, dword [ebp - 0x210]
add eax, dword [ebp - 0x14c]
cmp eax, 0xb6d8d46d
ja 0x1005a47a
mov dword [ebp - 0x240], 1
jmp 0x1005a481
and dword [ebp - 0x240], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x308], eax
push 1
lea ecx, [ebp - 0xc4]
call fcn.10019cac
push dword [eax]
lea ecx, [ebp - 0x74]
call fcn.10019cac
cmp dword [eax], 0xb7de
jle 0x1005a4b8
mov dword [ebp - 0x150], 1
jmp 0x1005a4bf
and dword [ebp - 0x150], 0
cmp dword [ebp - 0x150], 0xfffffffe
ja 0x1005a4d4
mov dword [ebp - 0x158], 1
jmp 0x1005a4db
and dword [ebp - 0x158], 0
mov eax, dword [ebp - 0x158]
neg eax
cmp eax, 0x8591f28f
je 0x1005a4f6
mov dword [ebp - 0x160], 1
jmp 0x1005a4fd
and dword [ebp - 0x160], 0
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x88], eax
jmp 0x1005a62d
mov dword [ebp - 0xe4], 0x1a9d0e46
mov dword [ebp - 0x24], 1
jmp 0x1005a528
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x1005a62d
mov dword [ebp - 0x250], 0xffffffff
push dword [ebp - 0x24]
lea ecx, [ebp - 0x74]
call fcn.10019cac
mov esi, eax
push dword [ebp - 0x24]
lea ecx, [ebp - 0x74]
call fcn.10019cac
mov ecx, dword [esi]
mov dword [eax], ecx
cmp dword [ebp - 0x60], 0x99d32817
jae 0x1005a576
mov eax, 0xc5db0950
test eax, eax
je 0x1005a576
mov dword [ebp - 0x168], 1
jmp 0x1005a57d
and dword [ebp - 0x168], 0
mov eax, dword [ebp - 0xe4]
cmp dword [ebp - 0x168], eax
jle 0x1005a597
mov dword [ebp - 0x170], 1
jmp 0x1005a59e
and dword [ebp - 0x170], 0
push 1
lea ecx, [ebp - 0xc4]
call fcn.10019cac
mov eax, dword [eax]
cmp eax, dword [ebp - 0x170]
jge 0x1005a5c1
mov dword [ebp - 0xe0], 1
jmp 0x1005a5c8
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0x178]
add eax, dword [ebp - 0xe0]
cmp dword [ebp - 0x298], eax
jge 0x1005a5e8
mov dword [ebp - 0x248], 1
jmp 0x1005a5ef
and dword [ebp - 0x248], 0
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x278], eax
jle 0x1005a612
mov dword [ebp - 0xec], 1
jmp 0x1005a619
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0xec]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x250], eax
jmp 0x1005a521
jmp 0x1005a236
jmp 0x1005a1e5
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xc4]
call fcn.10019ca7
jmp 0x1005a169
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
call fcn.10019ca7
jmp 0x1005a0ac
cmp dword [ebp - 0x24], 0
jg 0x1005a66e
mov dword [ebp - 0xf4], 1
jmp 0x1005a675
and dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0xf4]
test eax, eax
je 0x1005a693
push 4
pop eax
test eax, eax
jne 0x1005a693
and dword [ebp - 0xfc], 0
jmp 0x1005a69d
mov dword [ebp - 0xfc], 1
imul eax, dword [ebp - 0x24], 0xffffffff
cmp eax, dword [ebp - 0xfc]
jg 0x1005a6b5
mov dword [ebp - 0x104], 1
jmp 0x1005a6bc
and dword [ebp - 0x104], 0
mov esi, dword [ebp - 0x104]
neg esi
push 1
lea ecx, [ebp - 0xd8]
call fcn.10019cac
mov dword [eax], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.10019ca7
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x12c], 0xef5d
mov dword [ebp - 0x144], 0xd228
mov dword [ebp - 0x90], 0
jmp 0x1005a718
mov eax, dword [ebp - 0x90]
inc eax
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 1
jge 0x1005a734
mov eax, dword [ebp - 0x90]
mov dword [ebp + eax*4 - 0x98], 0
jmp 0x1005a70b
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x98], 0xfffffffc
jmp 0x1005a762
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x98]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x98], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x98], 0xfffffff9
jle 0x1005a8c8
mov dword [ebp - 0x48], 0x22124f84
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x288], 0x69ff4caa
mov dword [ebp - 0x48], 0
jmp 0x1005a7a1
mov eax, dword [ebp - 0x48]
dec eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffea
je 0x1005a8c3
mov dword [ebp - 0xa0], 0xb35d
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x48], 0
jne 0x1005a7d3
mov dword [ebp - 0x10c], 1
jmp 0x1005a7da
and dword [ebp - 0x10c], 0
cmp dword [ebp - 0x258], 0
jne 0x1005a7ef
mov dword [ebp - 0x114], 1
jmp 0x1005a7f6
and dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x114]
jge 0x1005a810
mov dword [ebp - 0x13c], 1
jmp 0x1005a817
and dword [ebp - 0x13c], 0
cmp dword [ebp - 0xa0], 4
ja 0x1005a82c
mov dword [ebp - 0x11c], 1
jmp 0x1005a833
and dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0xa0]
cmp dword [ebp - 0x11c], eax
jl 0x1005a84d
mov dword [ebp - 0x124], 1
jmp 0x1005a854
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x124]
sub eax, dword [ebp - 0x12c]
jne 0x1005a874
cmp dword [ebp - 0x144], 0
jne 0x1005a874
and dword [ebp - 0x134], 0
jmp 0x1005a87e
mov dword [ebp - 0x134], 1
mov eax, dword [ebp - 0x134]
sub eax, 0xeaf8
cmp dword [ebp - 0x13c], eax
jne 0x1005a898
cmp dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x144]
sub ecx, dword [ebp - 0x48]
add ecx, 0x554a9bef
add eax, ecx
mov dword [ebp - 0x288], eax
jmp 0x1005a79a
jmp 0x1005a747
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x5c]
mov dword [eax], 0
jmp 0x1005a8ea
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax], 1
jge 0x1005a90a
mov eax, dword [ebp - 0x5c]
push dword [eax]
mov ecx, dword [ebp - 0x230]
call fcn.10019cac
mov dword [eax], 0x6444696a
jmp 0x1005a8df
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret