Function at 0x401770
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59a2e0
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
je 0x402295
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00508b18
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x9c], ebx
repne scasb al, byte es:[edi]
not ecx
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 8
and ecx, 3
rep stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402b70
lea ecx, [esp + 0x24]
mov dword [esp + 0xb4], 0
call fcn.00402a70
lea edx, [esp + 0x7a]
lea ecx, [esp + 0xa0]
push edx
mov dword [esp + 0xb8], 1
call fcn.00500590
lea eax, [esp + 0x79]
push 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 2
call fcn.00402b70
lea ecx, [esp + 0xc]
mov byte [esp + 0xb4], 3
call fcn.00402a70
lea ecx, [esp + 0x77]
push 8
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], 4
call fcn.00402b70
lea ecx, [esp + 0x18]
mov byte [esp + 0xb4], 5
call fcn.00402a70
lea edx, [esp + 0x7b]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0xb8], 6
call fcn.00500590
mov byte [esp + 0xb4], 7
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
push ecx
push ebx
lea ecx, [esp + 0x3c]
call fcn.00402ac0
lea eax, [esp + 0x75]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0xb8], 8
call fcn.00500590
mov edi, 0x5c4244
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xb4], 9
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, 0x5c4244
push ecx
push 0x5c4244
lea ecx, [esp + 0x54]
call fcn.00402ac0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0xc4], 0xa
call fcn.004a1fc0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, eax
add esp, 0x10
sub edx, ecx
je 0x40221b
push ebp
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00403200
mov edi, 0x5c4240
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edx
cmp eax, ecx
jne 0x4019b6
mov edi, 0x5c4240
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4019b6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00403200
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004a1fc0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x10
sub ecx, eax
je 0x4019b2
push eax
call fcn.0050913b
add esp, 4
mov dword [0x5c4184], eax
mov edx, dword [esp + 0x28]
mov edi, str.pureobserver
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edx
cmp eax, ecx
jne 0x401a29
mov edi, str.pureobserver
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401a29
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00403200
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004a1fc0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x10
sub ecx, eax
je 0x401a25
push eax
call fcn.0050913b
add esp, 4
mov dword [0x5d599c], eax
mov edx, dword [esp + 0x28]
mov edi, 0x5c422c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edx
cmp eax, ecx
jne 0x401aa6
mov edi, 0x5c422c
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401aa6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00403200
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004a1fc0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, eax
add esp, 0x10
sub edx, ecx
je 0x401aa2
push eax
push ecx
mov ecx, 0x5d566c
call fcn.00403200
mov dword [0x5d5998], 2
mov edx, dword [esp + 0x28]
mov edi, str.port
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edx
cmp eax, ecx
jne 0x401b19
mov edi, str.port
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401b19
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00403200
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004a1fc0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x10
sub ecx, eax
je 0x401b15
push eax
call fcn.0050913b
add esp, 4
mov dword [0x5d5988], eax
mov edx, dword [esp + 0x28]
mov edi, str.password
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edx
cmp eax, ecx
jne 0x401b8c
mov edi, str.password
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401b8c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00403200
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004a1fc0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, eax
add esp, 0x10
sub edx, ecx
je 0x401b88
push eax
push ecx
mov ecx, 0x5d5660
call fcn.00403200
mov edx, dword [esp + 0x28]
mov edi, 0x5c4214
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edx
cmp eax, ecx
jne 0x401bff
mov edi, 0x5c4214
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401bff
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00403200
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004a1fc0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x10
sub ecx, eax
je 0x401bfb
push eax
call fcn.0050913b
add esp, 4
mov dword [0x5d59a0], eax
mov edx, dword [esp + 0x28]
mov edi, 0x5c4208
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edx
cmp eax, ecx
jne 0x401c72
mov edi, 0x5c4208
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401c72
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00403200
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004a1fc0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x10
sub ecx, eax
je 0x401c6e
push eax
call fcn.0050913b
add esp, 4
mov dword [0x5c4188], eax
mov edx, dword [esp + 0x28]
mov edi, 0x5c4204
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
not ecx
dec ecx
sub eax, edx
cmp eax, ecx
jne 0x402130
mov edi, 0x5c4204
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x402130
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00403200
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call fcn.004a1fc0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x10
sub ecx, eax
je 0x40212c
push eax
call fcn.0050913b
mov esi, eax
add esp, 4
test esi, esi
je 0x40212c
lea ebp, [esi + 1]
push ebp
call fcn.00508b18
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x78], edi
push ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00508b18
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
test esi, esi
jle 0x401d4d
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, esi
mov dl, byte [eax + ecx - 1]
mov byte [eax + edi - 1], dl
jl 0x401d3c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], ecx
cmp ecx, esi
lea ecx, [esp + 0x90]
jb 0x401d77
lea ecx, [esp + 0x8c]
mov ecx, dword [ecx]
add ecx, eax
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402b30
mov edx, dword [0x5d5778]
mov eax, dword [esp + 0x74]
push edx
push esi
push eax
push ebx
call fcn.00402420
xor ebp, ebp
add esp, 0x10
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xb8], 0xb
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
push ecx
push ebx
lea ecx, [esp + 0x70]
call fcn.00402ac0
lea ecx, [esp + 0x7a]
push 8
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0xc0], 0xc
call fcn.00402b70
lea ecx, [esp + 0x44]
mov byte [esp + 0xb8], 0xd
call fcn.00402a70
lea edx, [esp + 0x36]
push 8
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0xc0], 0xe
call fcn.00402b70
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb8], 0xf
call fcn.00402a70
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x70]
push edx
push eax
mov byte [esp + 0xc8], 0x10
call fcn.004a1fc0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add esp, 0x10
sub ecx, eax
je 0x4020df
mov dl, byte [esp + 0x36]
lea eax, [esp + 0x37]
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x3b], dl
call fcn.00500590
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x88]
mov byte [esp + 0xc0], 0x11
call fcn.00402ac0
mov edi, 0x5c4200
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x80]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x84]
mov byte [esp + 0xb8], 0x12
not ecx
dec ecx
sub eax, edx
cmp eax, ecx
jne 0x401f1d
mov edi, 0x5c4200
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401f1d
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x70]
call fcn.00403200
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x70]
push edx
push eax
call fcn.004a1fc0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add esp, 0x10
sub ecx, eax
je 0x401f16
mov edx, 0x5d5888
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401f02
mov dword [0x5d5998], 1
mov edx, dword [esp + 0x80]
mov edi, 0x5c4240
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x84]
not ecx
dec ecx
sub eax, edx
cmp eax, ecx
jne 0x401f99
mov edi, 0x5c4240
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401f99
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x70]
call fcn.00403200
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x70]
push edx
push eax
call fcn.004a1fc0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add esp, 0x10
sub ecx, eax
je 0x401f92
mov edx, 0x5d5678
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401f88
mov edx, dword [esp + 0x80]
mov edi, 0x5c41fc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x84]
not ecx
dec ecx
sub eax, edx
cmp eax, ecx
jne 0x40208c
mov esi, edx
mov edi, 0x5c41fc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40208c
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
lea ecx, [esp + 0x70]
call fcn.00403200
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
mov edi, 0x5c41f8
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xb8], 0x13
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, 0x5c41f8
push ecx
push 0x5c41f8
lea ecx, [esp + 0x9c]
call fcn.00402ac0
lea edx, [esp + 0x5c]
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
mov byte [esp + 0xc8], 0x14
call fcn.004a1fc0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add esp, 0x10
sub ecx, eax
je 0x402062
mov edx, 0x5d5788
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402058
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x94]
sub eax, ecx
cmp ecx, ebp
mov byte [esp + 0xb8], 0x12
je 0x40208c
cmp eax, ebp
je 0x40208c
push eax
push ecx
call fcn.00402e90
add esp, 8
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
push edx
push eax
lea ecx, [esp + 0x70]
call fcn.00403200
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.004a1fc0
add esp, 0x10
lea ecx, [esp + 0x80]
mov byte [esp + 0xb8], 0x10
call fcn.00402bc0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
sub edx, eax
jne 0x401e51
mov eax, dword [esp + 0x74]
push eax
call fcn.00507830
push ebx
call fcn.00507830
add esp, 8
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb8], 0xe
call fcn.00402bc0
lea ecx, [esp + 0x44]
mov byte [esp + 0xb8], 0xc
call fcn.00402bc0
lea ecx, [esp + 0x68]
mov byte [esp + 0xb8], 0xa
call fcn.00402bc0
mov ebx, dword [esp + 0xa0]
mov edx, dword [esp + 0x28]
mov edi, 0x5c41f4
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub ebp, edx
cmp ebp, ecx
jne 0x40215b
mov edi, 0x5c41f4
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40215b
mov dword [0x5c4180], eax
mov edi, 0x5c41f0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jne 0x402185
mov edi, 0x5c41f0
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x402185
mov dword [0x5d598c], 1
mov edi, str.dedicate
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jne 0x4021af
mov edi, str.dedicate
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4021af
mov dword [0x5d5990], 1
mov edi, str.score
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jne 0x4021d9
mov esi, edx
mov edi, str.score
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4021d9
mov dword [0x5d5994], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00403200
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.004a1fc0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, eax
add esp, 0x10
sub edx, ecx
jne 0x401934
pop ebp
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 8
call fcn.00402bc0
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 6
call fcn.00402bc0
lea ecx, [esp + 0x18]
mov byte [esp + 0xb4], 4
call fcn.004026e0
lea ecx, [esp + 0xc]
mov byte [esp + 0xb4], 2
call fcn.004026e0
lea ecx, [esp + 0xa0]
mov byte [esp + 0xb4], 1
call fcn.00402890
lea ecx, [esp + 0x24]
mov dword [esp + 0xb4], 0xffffffff
call fcn.004026e0
test ebx, ebx
pop edi
je 0x402295
push ebx
call fcn.00507830
add esp, 4
mov ecx, dword [esp + 0xa8]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret