Function at 0x40c7b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x518
mov eax, dword [esp + 0x524]
mov ecx, dword [esp + 0x528]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x528]
push edi
xor edi, edi
mov dword [eax], edi
mov byte [ecx], 0
mov eax, dword [esi + 0x1b0]
mov dword [esp + 0x20], edi
cmp eax, edi
mov dword [esp + 0x24], edi
jne 0x40c7f8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x518
ret
push 1
push 0x338
call dword [0x428f04]
mov ebp, eax
add esp, 8
cmp ebp, edi
jne 0x40c827
mov edx, dword [esp + 0x530]
mov dword [edx], edi
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
mov eax, dword [esp + 0x530]
or ebx, 0xffffffff
mov dword [eax], ebp
mov dword [ebp], esi
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 4], ebx
mov eax, dword [esi + 0x1b8]
cmp eax, edi
je 0x40c863
cmp byte [eax], 0
je 0x40c863
cmp dword [esi + 0x158], edi
jne 0x40c863
mov eax, 1
jmp 0x40c865
xor eax, eax
mov byte [ebp + 0xdf], al
mov byte [ebp + 0xdc], 1
mov dword [ebp + 0xa0], ebx
mov dword [ebp + 0xa4], ebx
call fcn.00414fa0
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x94], edx
cmp dword [esi + 0x48], edi
setne cl
mov byte [ebp + 0xe4], cl
mov edx, dword [esi + 0x48]
mov dword [ebp + 0x68], edx
mov eax, dword [esi + 0xb8]
mov dword [ebp + 0x70], eax
mov ecx, dword [esi + 0xbc]
mov dword [ebp + 0x74], ecx
mov ecx, dword [esi + 0x3c]
cmp ecx, edi
setne dl
mov byte [ebp + 0xe0], dl
mov eax, dword [esi + 0x1c]
cmp eax, edi
setne al
mov byte [ebp + 0xe1], al
mov cl, byte [esi + 0x18f]
mov byte [ebp + 0xed], cl
mov dl, byte [esi + 0x182]
mov byte [ebp + 0xee], dl
mov al, byte [esi + 0x1a1]
mov byte [ebp + 0xf1], al
mov cl, byte [esi + 0x1a2]
mov byte [ebp + 0xf2], cl
mov dl, byte [esi + 0x1a3]
mov byte [ebp + 0xf3], dl
mov edi, dword [esi + 0x1b0]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0x100
jae 0x40c929
mov edi, 0x100
push edi
call dword [0x428ef4]
add esp, 4
mov dword [ebp + 0x48], eax
test eax, eax
je 0x40c817
push edi
mov dword [ebp + 0x4c], eax
call dword [0x428ef4]
add esp, 4
mov dword [ebp + 0x28], eax
test eax, eax
je 0x40c817
mov edi, dword [sym.imp.MSVCRT.dll_sscanf]
mov dword [ebp + 0x30], eax
mov byte [eax], 0
mov eax, dword [ebp + 0x4c]
mov ecx, dword [esi + 0x1b0]
lea ebx, [ebp + 0x18]
push eax
push ebx
push 0x429fbc
push ecx
call edi
add esp, 0x10
cmp eax, 2
jne 0x40ca14
push 0x429fb4
push ebx
call fcn.004137e0
add esp, 8
test eax, eax
je 0x40ca14
mov edx, dword [ebp + 0x4c]
cmp byte [edx], 0x2f
jne 0x40c9bf
cmp byte [edx + 1], 0x2f
jne 0x40c9bf
lea edi, [edx + 2]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [edx + 2]
push ecx
push eax
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, dword [ebp + 0x4c]
cmp byte [eax], 0x2f
je 0x40c9ff
push 0x2f
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x40c9ff
mov al, byte [edx + 1]
test al, al
je 0x40c9e5
cmp al, 0x2f
jne 0x40c9e5
inc edx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [ebp + 0x4c]
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, dword [0x429fb4]
mov dword [ebx], eax
mov cl, byte [0x429fb8]
mov byte [ebx + 4], cl
jmp 0x40cb77
mov edx, dword [ebp + 0x4c]
mov ax, word [0x429fb0]
mov word [edx], ax
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x30]
mov eax, dword [esi + 0x1b0]
push ecx
push edx
push ebx
push 0x429f98
push eax
call edi
add esp, 0x14
cmp eax, 2
jge 0x40cb77
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x30]
mov eax, dword [esi + 0x1b0]
push ecx
push edx
push 0x429f8c
push eax
call edi
add esp, 0x10
cmp eax, 1
jge 0x40ca7f
push 0x429f7c
push esi
call fcn.00414a30
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
mov ecx, dword [ebp + 0x30]
push 7
push ecx
push 0x429f74
call fcn.00413800
add esp, 0xc
test eax, eax
je 0x40cab6
mov edx, dword [0x429f6c]
mov dword [ebx], edx
mov ax, word [0x429f70]
mov word [ebx + 4], ax
mov cl, byte [0x429f72]
mov byte [ebx + 6], cl
jmp 0x40cb6f
mov edx, dword [ebp + 0x30]
push 4
push edx
push 0x429f64
call fcn.00413800
add esp, 0xc
test eax, eax
je 0x40cad9
mov eax, dword [0x429f60]
mov dword [ebx], eax
jmp 0x40cb6f
mov ecx, dword [ebp + 0x30]
push 7
push ecx
push 0x429f58
call fcn.00413800
add esp, 0xc
test eax, eax
je 0x40cb0d
mov edx, dword [0x429f50]
mov dword [ebx], edx
mov ax, word [0x429f54]
mov word [ebx + 4], ax
mov cl, byte [0x429f56]
mov byte [ebx + 6], cl
jmp 0x40cb6f
mov edx, dword [ebp + 0x30]
push 5
push edx
push 0x429f48
call fcn.00413800
add esp, 0xc
test eax, eax
je 0x40cb36
mov eax, dword [0x429f40]
mov dword [ebx], eax
mov cl, byte [0x429f44]
mov byte [ebx + 4], cl
jmp 0x40cb6f
mov edx, dword [ebp + 0x30]
push 5
push edx
push 0x429f38
call fcn.00413800
add esp, 0xc
test eax, eax
je 0x40cb5f
mov eax, dword [0x429f30]
mov dword [ebx], eax
mov cl, byte [0x429f34]
mov byte [ebx + 4], cl
jmp 0x40cb6f
mov edx, dword [0x429f28]
mov dword [ebx], edx
mov al, byte [0x429f2c]
mov byte [ebx + 4], al
mov eax, dword [ebp + 8]
or al, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0x30]
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x40
push ecx
call edi
add esp, 8
test eax, eax
push 0x3f
je 0x40cb92
inc eax
push eax
jmp 0x40cb96
mov edx, dword [ebp + 0x30]
push edx
call edi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40cbf1
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea eax, [edx + esi + 1]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov ecx, dword [ebp + 0x4c]
add esp, 0xc
mov byte [ecx], 0x2f
mov edi, dword [ebp + 0x4c]
mov ecx, esi
mov esi, ebx
mov edx, ecx
inc edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x52c]
mov byte [ebx], 0
mov edx, dword [ebp + 0x4c]
cmp byte [edx], 0x3f
jne 0x40cc17
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
inc edx
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [ebp + 0x4c]
add esp, 0xc
mov byte [eax], 0x2f
mov al, byte [ebp + 0xe1]
test al, al
je 0x40ccb0
mov dl, byte [0x42d680]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], dl
mov byte [esp + 0x328], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x329]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x328]
stosb byte es:[edi], al
mov eax, dword [esi + 0x1c]
push ecx
push edx
push 0x429f14
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
lea ecx, [esp + 0x38]
push ecx
call dword [0x428f00]
add esp, 0x14
mov dword [ebp + 0x80], eax
test eax, eax
je 0x40c817
lea edx, [esp + 0x328]
push edx
call dword [0x428f00]
add esp, 4
mov dword [ebp + 0x84], eax
test eax, eax
je 0x40c817
mov eax, dword [esi + 0x1b8]
test eax, eax
jne 0x40cf93
push 0x429f08
call fcn.0041f3f0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40ccec
push 0x429efc
call fcn.0041f3f0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x40cdb4
push eax
push 0x429ef8
call fcn.004137e0
add esp, 8
test eax, eax
jne 0x40cf81
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40cdb4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 0x429ef4
push ecx
call fcn.0041f370
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40cdb4
mov edx, dword [ebp + 0x30]
push 0x3a
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
mov edx, dword [ebp + 0x30]
add esp, 8
test eax, eax
je 0x40cd4b
sub eax, edx
mov ebx, eax
jmp 0x40cd59
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
ja 0x40cd90
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ebx
sub edx, ecx
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call fcn.00413800
add esp, 0xc
test eax, eax
jne 0x40cdac
lea eax, [esp + 0x10]
push eax
push 0x429ef4
push 0
call fcn.0041f370
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40cd2f
jmp 0x40cdb4
test esi, esi
jne 0x40cf81
mov al, byte [ebp + 0x18]
lea edi, [ebp + 0x18]
test al, al
lea esi, [esp + 0x28]
je 0x40cde2
mov ebx, dword [sym.imp.MSVCRT.dll_tolower]
lea ecx, [esp + 0x28]
sub edi, ecx
movsx eax, al
push eax
call ebx
add esp, 4
mov byte [esi], al
mov al, byte [edi + esi + 1]
inc esi
test al, al
jne 0x40cdce
mov edx, dword [0x429eec]
mov ax, word [0x429ef0]
mov cl, byte [0x429ef2]
mov dword [esi], edx
lea edx, [esp + 0x28]
mov word [esi + 4], ax
push edx
mov byte [esi + 6], cl
call fcn.0041f3f0
add esp, 4
test eax, eax
jne 0x40ce5a
lea eax, [esp + 0x28]
push eax
push 0x429ee0
call fcn.004137e0
add esp, 8
test eax, eax
jne 0x40ce5f
mov al, byte [esp + 0x28]
lea esi, [esp + 0x28]
test al, al
je 0x40ce49
mov edi, dword [sym.imp.MSVCRT.dll_toupper]
movsx ecx, al
push ecx
call edi
add esp, 4
mov byte [esi], al
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40ce36
lea edx, [esp + 0x28]
push edx
call fcn.0041f3f0
add esp, 4
test eax, eax
je 0x40ce5f
cmp byte [eax], 0
jne 0x40ce7f
push 0x429ed4
call fcn.0041f3f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ce89
push 0x429ec8
call fcn.0041f3f0
add esp, 4
mov esi, eax
test esi, esi
je 0x40cf81
cmp byte [esi], 0
je 0x40cf81
push 0x429ec4
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x40ceaa
add eax, 3
jmp 0x40ceac
mov eax, esi
push 0x40
push eax
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x40cf66
lea eax, [esp + 0x428]
lea ecx, [esp + 0x328]
push eax
push ecx
push 0x429eb0
push ebx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x40cf66
mov edx, dword [ebp + 0x80]
push edx
call fcn.0040ad90
lea eax, [esp + 0x32c]
push eax
call dword [0x428f00]
add esp, 8
mov dword [ebp + 0x80], eax
test eax, eax
je 0x40d018
mov ecx, dword [ebp + 0x84]
push ecx
call fcn.0040ad90
lea edx, [esp + 0x42c]
push edx
call dword [0x428f00]
add esp, 8
mov dword [ebp + 0x84], eax
test eax, eax
je 0x40d018
inc edi
mov byte [ebp + 0xe1], 1
push edi
call dword [0x428f00]
mov edi, eax
add esp, 4
test edi, edi
je 0x40d018
push esi
call dword [0x428ef8]
add esp, 4
mov esi, edi
mov eax, dword [esp + 0x52c]
mov dword [eax + 0x1b8], esi
mov byte [eax + 0x1bc], 1
mov byte [ebp + 0xdf], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40cf93
push eax
call dword [0x428ef8]
add esp, 4
mov al, byte [ebp + 8]
mov ebx, dword [esp + 0x52c]
test al, 1
je 0x40cfd6
mov eax, dword [ebx + 0x1b0]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x429ea8
call fcn.00413620
add esp, 0xc
test eax, eax
je 0x40c817
mov dword [ebx + 0x1b0], eax
mov byte [ebx + 0x1b4], 1
mov eax, dword [ebp + 8]
and al, 0xfe
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x74]
mov edx, eax
or edx, ecx
je 0x40d032
mov dl, byte [ebp + 0xe4]
test dl, dl
jne 0x40d032
push ecx
push eax
push 0x429ea0
call fcn.00413620
xor edi, edi
add esp, 0xc
cmp eax, edi
mov dword [ebp + 0x68], eax
je 0x40c817
mov byte [ebp + 0xe5], 1
mov byte [ebp + 0xe4], 1
jmp 0x40d034
push esi
call dword [0x428ef8]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
xor edi, edi
lea esi, [ebp + 0x18]
push 0x428da4
push esi
call fcn.004137e0
add esp, 8
test eax, eax
je 0x40d086
mov eax, 0x50
mov dword [ebp + 0xf8], 0x41e1b0
mov dword [ebp + 0x50], eax
mov word [ebp + 0x54], ax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x100], edi
or al, 4
mov dword [ebp + 0xfc], 0x41dfd0
mov dword [ebp + 8], eax
mov dword [ebp + 0x104], 0x41df50
jmp 0x40d414
push 0x429e98
push esi
call fcn.004137e0
add esp, 8
test eax, eax
je 0x40d0b6
push 0x429e5c
push ebx
call fcn.00414a30
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
push 0x429e54
push esi
call fcn.004137e0
add esp, 8
test eax, eax
je 0x40d154
mov eax, 0x46
mov dword [ebp + 0x50], eax
mov word [ebp + 0x54], ax
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x40d0f7
mov ecx, dword [ebp + 0x4c]
push 4
movsx edx, byte [ecx + 1]
push edx
call dword [sym.imp.MSVCRT.dll__isctype]
add esp, 8
jmp 0x40d10c
mov eax, dword [ebp + 0x4c]
mov edx, dword [sym.imp.MSVCRT.dll__pctype]
movsx ecx, byte [eax + 1]
mov eax, dword [edx]
mov al, byte [eax + ecx*2]
and eax, 4
cmp eax, edi
je 0x40d12d
mov ecx, dword [ebp + 0x4c]
push 0x2f
inc ecx
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp eax, edi
mov dword [ebp + 0x4c], eax
jne 0x40d12d
mov edx, dword [ebp + 0x48]
mov dword [ebp + 0x4c], edx
mov eax, dword [ebp + 8]
mov dword [ebp + 0xf8], 0x41e1b0
or al, 2
mov dword [ebp + 0x100], edi
mov dword [ebp + 8], eax
mov dword [ebp + 0xfc], 0x41dfd0
jmp 0x40d414
push 0x428da0
push esi
call fcn.004137e0
add esp, 8
test eax, eax
jne 0x40d2ba
push 0x429e4c
push esi
call fcn.004137e0
add esp, 8
test eax, eax
jne 0x40d2ba
push 0x429e44
push esi
call fcn.004137e0
add esp, 8
test eax, eax
je 0x40d1bf
mov eax, dword [ebp + 8]
mov dword [ebp + 0xf8], 0x41b840
or al, 0x20
mov dword [ebp + 0xfc], 0x41b800
mov dword [ebp + 8], eax
mov eax, 0x17
mov dword [ebp + 0x50], eax
mov word [ebp + 0x54], ax
jmp 0x40d414
push 0x429f40
push esi
call fcn.004137e0
add esp, 8
test eax, eax
je 0x40d1fa
mov eax, dword [ebp + 8]
mov dword [ebp + 0xf8], 0x41b550
or al, 0x40
mov dword [ebp + 0xfc], edi
mov dword [ebp + 8], eax
mov eax, 0xa44
mov dword [ebp + 0x50], eax
mov word [ebp + 0x54], ax
jmp 0x40d414
push 0x429f30
push esi
call fcn.004137e0
add esp, 8
test eax, eax
je 0x40d235
mov eax, dword [ebp + 8]
mov dword [ebp + 0xf8], 0x41ab60
or al, 0x80
mov dword [ebp + 0xfc], edi
mov dword [ebp + 8], eax
mov eax, 0x185
mov dword [ebp + 0x50], eax
mov word [ebp + 0x54], ax
jmp 0x40d414
push 0x429e3c
push esi
call fcn.004137e0
add esp, 8
test eax, eax
je 0x40d29b
mov ebx, dword [ebp + 8]
push ebp
or bh, 1
mov dword [ebp + 0xf8], 0x41a700
mov dword [ebp + 8], ebx
mov dword [ebp + 0xfc], fcn.0041a6d0
call fcn.0041a5f0
add esp, 4
cmp eax, edi
jne 0x40c81c
push edi
push 0xffffffffffffffff
push edi
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
mov byte [ebp + 0xea], 1
call fcn.00410d50
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
push esi
push 0x429e20
push ebx
call fcn.00414a30
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
push 0x429e4c
push esi
call fcn.004137e0
add esp, 8
test eax, eax
je 0x40d2ea
push 0x429de4
push ebx
call fcn.00414a30
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
mov esi, dword [ebp + 8]
mov eax, 0x15
or esi, 0x10
mov dword [ebp + 0x50], eax
mov word [ebp + 0x54], ax
mov dword [ebp + 8], esi
mov eax, dword [ebx + 0x1b8]
mov ecx, esi
cmp eax, edi
je 0x40d35b
cmp byte [eax], 0
je 0x40d35b
mov al, byte [ebx + 0x182]
test al, al
jne 0x40d35b
cmp dword [ebx + 0x158], edi
jne 0x40d35b
test ch, 2
je 0x40d345
push 0x429dbc
push ebx
call fcn.00414a30
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
mov dword [ebp + 0xf8], 0x41e1b0
mov dword [ebp + 0xfc], 0x41dfd0
jmp 0x40d3b2
mov eax, 0x416440
mov dword [ebp + 0xf8], 0x419800
mov dword [ebp + 0x100], fcn.004195e0
mov dword [ebp + 0xfc], fcn.00419180
mov dword [ebp + 0x104], 0x418f70
mov dword [ebp + 0x108], fcn.004164c0
mov dword [ebp + 0x10c], 0x419db0
mov dword [ebp + 0x110], eax
mov dword [ebp + 0x114], eax
mov dword [ebp + 0x118], 0x419a80
mov edx, dword [ebp + 0x4c]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
inc edx
push 0x429db4
mov eax, edx
mov dword [ebp + 0x4c], edx
push eax
call esi
add esp, 8
cmp eax, edi
jne 0x40d3e2
mov eax, dword [ebp + 0x28]
push 0x429db4
push eax
call esi
add esp, 8
cmp eax, edi
je 0x40d414
movsx ecx, byte [eax + 6]
push ecx
mov byte [eax], 0
call dword [sym.imp.MSVCRT.dll_toupper]
add esp, 4
cmp al, 0x41
je 0x40d40d
cmp al, 0x44
je 0x40d404
mov byte [ebx + 0x184], 0
jmp 0x40d414
mov byte [ebx + 0x185], 1
jmp 0x40d414
mov byte [ebx + 0x184], 1
mov eax, dword [ebx + 0x1b8]
cmp eax, edi
je 0x40d4bd
cmp byte [eax], 0
je 0x40d4bd
push eax
call dword [0x428f00]
mov esi, eax
add esp, 4
test esi, esi
mov edi, esi
jne 0x40d45b
push 0x429da4
push ebx
call fcn.00414a30
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
push 0x429ec4
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x40d471
lea edi, [eax + 3]
push 0x3a
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x40d491
mov byte [eax], 0
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
jmp 0x40d498
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40d49b
mov dword [ebp + 0x50], eax
push edi
call dword [0x428f00]
push esi
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x40], eax
call dword [0x428ef8]
mov eax, dword [ebp + 0x38]
add esp, 8
test eax, eax
je 0x40c817
mov eax, dword [ebp + 8]
test ah, 4
je 0x40d4d6
mov al, byte [ebp + 0xdf]
test al, al
je 0x40d4d6
mov byte [ebp + 0xee], 1
mov byte [esp + 0x228], 0
mov byte [esp + 0x128], 0
test byte [ebp + 8], 0x14
je 0x40d638
mov edx, dword [ebp + 0x30]
push 0x40
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
mov ecx, dword [ebp + 0x30]
add esp, 8
test eax, eax
je 0x40d638
inc eax
mov dword [ebp + 0x30], eax
mov eax, dword [ebx + 0x194]
cmp eax, 2
je 0x40d638
mov byte [ebp + 0xe0], 1
mov al, byte [ecx]
cmp al, 0x3a
lea eax, [esp + 0x128]
push eax
je 0x40d54b
lea edx, [esp + 0x22c]
push edx
push 0x429d90
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
jmp 0x40d55a
push 0x429d84
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
mov al, byte [esp + 0x228]
test al, al
je 0x40d5c9
lea ecx, [esp + 0x228]
push 0
push ecx
call fcn.00415f00
mov edx, eax
add esp, 8
test edx, edx
je 0x40c817
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x100
jae 0x40d5bf
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x228]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push edx
call dword [0x428ef8]
add esp, 4
mov al, byte [esp + 0x128]
test al, al
je 0x40d638
lea ecx, [esp + 0x128]
push 0
push ecx
call fcn.00415f00
mov edx, eax
add esp, 8
test edx, edx
je 0x40c817
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x100
jae 0x40d62e
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x128]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push edx
call dword [0x428ef8]
add esp, 4
mov edx, dword [ebp + 0x30]
lea ecx, [esp + 0x17]
push ecx
push 0x429d6c
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
jne 0x40d686
cmp byte [esp + 0x17], 0x5d
jne 0x40d686
mov eax, dword [ebp + 0x30]
push 0x5d
inc eax
mov byte [ebp + 0xe2], 1
push eax
mov dword [ebp + 0x30], eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
add esp, 8
mov byte [esi], 0
mov al, byte [esi + 1]
inc esi
cmp al, 0x3a
je 0x40d697
xor esi, esi
jmp 0x40d697
mov eax, dword [ebp + 0x30]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x40d714
mov al, byte [ebx + 0x830c]
test al, al
je 0x40d714
mov cx, word [ebx + 0x38]
test esi, esi
mov word [ebp + 0x54], cx
je 0x40d6b7
mov byte [esi], 0
mov al, byte [ebp + 0xdf]
test al, al
je 0x40d766
mov edx, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x30]
xor eax, eax
push edx
mov ax, word [ebp + 0x54]
push eax
push ecx
push 0x429d5c
call fcn.00413620
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c817
mov al, byte [ebx + 0x1b4]
test al, al
je 0x40d705
mov edx, dword [ebx + 0x1b0]
push edx
call dword [0x428ef8]
add esp, 4
mov dword [ebx + 0x1b0], esi
mov byte [ebx + 0x1b4], 1
jmp 0x40d766
test esi, esi
je 0x40d766
lea eax, [esp + 0x10]
lea edi, [esi + 1]
push 0xa
push eax
push edi
call dword [sym.imp.MSVCRT.dll_strtoul]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp ecx, edi
je 0x40d766
cmp byte [ecx], 0
jne 0x40d766
cmp eax, 0xffff
jbe 0x40d75f
push eax
push 0x429d40
push ebx
call fcn.00414a30
add esp, 0xc
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
mov byte [esi], 0
mov word [ebp + 0x54], ax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40d78c
lea ecx, [esp + 0x128]
lea edx, [esp + 0x228]
push ecx
push edx
push 0x429f14
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
mov byte [ebp + 0xf4], 0
mov eax, dword [ebx + 0x194]
test eax, eax
je 0x40d7e6
mov eax, dword [ebx + 0x198]
lea ecx, [esp + 0x128]
push eax
mov eax, dword [ebp + 0x30]
lea edx, [esp + 0x22c]
push ecx
push edx
push eax
call fcn.00415c00
add esp, 0x10
test eax, eax
je 0x40d7d8
mov ecx, dword [ebp + 0x30]
push ecx
push 0x429d04
push ebx
call fcn.004149c0
add esp, 0xc
jmp 0x40d7e6
mov byte [ebp + 0xf4], 1
mov byte [ebp + 0xe0], 1
test byte [ebp + 8], 0x10
je 0x40d80b
mov al, byte [ebp + 0xe0]
test al, al
jne 0x40d80b
push 0x429cf8
call dword [0x428f00]
mov dword [ebp + 0x78], eax
push 0x429ce0
jmp 0x40d824
lea edx, [esp + 0x228]
push edx
call dword [0x428f00]
mov dword [ebp + 0x78], eax
lea eax, [esp + 0x12c]
push eax
call dword [0x428f00]
mov dword [ebp + 0x7c], eax
mov eax, dword [ebp + 0x78]
add esp, 8
test eax, eax
je 0x40c817
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x40c817
lea edi, [ebp + 0xac]
lea ecx, [ebx + 0x128]
push edi
push ecx
call fcn.0040a760
add esp, 8
test al, al
je 0x40c817
mov al, byte [ebx + 0x19f]
test al, al
je 0x40d87c
mov al, byte [ebx + 0x82f0]
test al, al
je 0x40dade
lea edx, [esp + 0x24]
push edx
push ebp
push ebx
call fcn.0040dcb0
add esp, 0xc
test al, al
je 0x40dade
mov esi, ebp
mov ebp, dword [ebp + 0x38]
test ebp, ebp
je 0x40d8a6
push ebp
call dword [0x428ef8]
add esp, 4
push edi
call fcn.0040a810
mov ebp, dword [esp + 0x28]
mov cl, byte [esi + 0xe0]
add esp, 4
mov byte [ebp + 0xe0], cl
lea eax, [ebp + 0xe0]
test cl, cl
je 0x40d8f4
mov edx, dword [ebp + 0x78]
push edx
call fcn.0040ad90
mov eax, dword [ebp + 0x7c]
push eax
call fcn.0040ad90
mov ecx, dword [esi + 0x78]
add esp, 8
mov dword [ebp + 0x78], ecx
mov edx, dword [esi + 0x7c]
xor edi, edi
mov dword [ebp + 0x7c], edx
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
jmp 0x40d8f6
xor edi, edi
mov al, byte [esi + 0xe1]
test al, al
mov byte [ebp + 0xe1], al
je 0x40d945
mov eax, dword [ebp + 0x80]
push eax
call fcn.0040ad90
mov ecx, dword [ebp + 0x84]
push ecx
call fcn.0040ad90
mov edx, dword [esi + 0x80]
add esp, 8
mov dword [ebp + 0x80], edx
mov eax, dword [esi + 0x84]
mov dword [ebp + 0x84], eax
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov al, byte [ebp + 0xdf]
test al, al
je 0x40d976
mov ecx, dword [ebp + 0x28]
push ecx
call dword [0x428ef8]
lea edx, [esi + 0x28]
add esp, 4
mov eax, dword [edx]
mov dword [ebp + 0x28], eax
mov ecx, dword [edx + 4]
mov dword [ebp + 0x2c], ecx
mov eax, dword [edx + 8]
mov dword [ebp + 0x30], eax
mov ecx, dword [edx + 0xc]
mov dword [ebp + 0x34], ecx
mov al, byte [ebp + 0xdf]
mov dl, byte [esi + 0xed]
test al, al
mov byte [ebp + 0xed], dl
jne 0x40d999
mov eax, dword [esi + 0x28]
push eax
call dword [0x428ef8]
add esp, 4
mov ecx, dword [ebp + 0x48]
push ecx
call dword [0x428ef8]
mov edx, dword [esi + 0x48]
mov dword [ebp + 0x48], edx
mov eax, dword [esi + 0x4c]
mov dword [ebp + 0x4c], eax
or eax, 0xffffffff
mov dword [ebp + 0xa0], eax
mov byte [ebp + 0xdd], 1
mov byte [ebp + 0xde], 0
mov dword [ebp + 0xa4], eax
mov ecx, dword [esi + 0x78]
push ecx
call fcn.0040ad90
mov edx, dword [esi + 0x7c]
push edx
call fcn.0040ad90
mov eax, dword [esi + 0x80]
push eax
call fcn.0040ad90
mov ecx, dword [esi + 0x84]
push ecx
call fcn.0040ad90
mov al, byte [esi + 0xe5]
add esp, 0x14
test al, al
je 0x40da10
mov edx, dword [esi + 0x68]
push edx
call dword [0x428ef8]
add esp, 4
push esi
call dword [0x428ef8]
mov eax, dword [ebx + 0xb8]
add esp, 4
mov dword [ebp + 0x70], eax
mov ecx, dword [ebx + 0xbc]
mov dword [ebp + 0x74], ecx
mov edx, dword [ebp + 0x70]
mov eax, ecx
or edx, eax
je 0x40da7b
cmp byte [ebp + 0xe5], 1
jne 0x40da4b
mov eax, dword [ebp + 0x68]
push eax
call dword [0x428ef8]
add esp, 4
mov ecx, dword [ebp + 0x74]
mov edx, dword [ebp + 0x70]
push ecx
push edx
push 0x429ea0
call fcn.00413620
add esp, 0xc
cmp eax, edi
mov dword [ebp + 0x68], eax
je 0x40c817
mov byte [ebp + 0xe4], 1
mov byte [ebp + 0xe5], 1
jmp 0x40daae
mov eax, dword [ebx + 0x48]
cmp eax, edi
je 0x40daa7
push eax
call dword [0x428f00]
add esp, 4
cmp eax, edi
mov dword [ebp + 0x68], eax
je 0x40c817
mov byte [ebp + 0xe5], 1
mov byte [ebp + 0xe4], 1
jmp 0x40daae
mov byte [ebp + 0xe4], 0
mov eax, dword [esp + 0x530]
mov dword [eax], ebp
mov al, byte [ebp + 0xdf]
test al, al
je 0x40dac6
mov eax, dword [ebp + 0x44]
jmp 0x40dac9
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 4]
push eax
push ecx
push 0x429cac
push ebx
call fcn.004149c0
add esp, 0x10
jmp 0x40daea
push ebp
push ebx
call fcn.0040de60
add esp, 8
xor edi, edi
mov edx, dword [ebx + 0x80]
mov dword [ebp + 0x1f8], edx
mov eax, dword [ebx + 0x28]
mov dword [ebp + 0x1fc], eax
mov al, byte [ebp + 8]
test al, 4
je 0x40db32
mov al, byte [ebx + 0x191]
test al, al
je 0x40db32
mov ecx, dword [ebx + 0xa8]
mov edx, dword [ebx + 0xac]
and ecx, edx
cmp ecx, 0xffffffff
jne 0x40db32
mov ecx, dword [ebx + 0x11c]
mov eax, 1
cmp ecx, eax
jne 0x40db34
xor eax, eax
mov byte [ebp + 0xe7], al
mov al, byte [ebp + 0xdd]
test al, al
je 0x40db7f
mov dword [esp + 0x1c], edi
mov al, byte [ebp + 0xdf]
test al, al
je 0x40dc94
lea edx, [ebp + 0x28]
push edx
push ebp
call fcn.0040dec0
mov edx, dword [esp + 0x53c]
mov eax, dword [esp + 0x24]
add esp, 8
mov dword [edx], eax
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
lea eax, [ebp + 0x28]
push eax
push ebp
call fcn.0040dec0
mov eax, dword [ebx + 0x1b8]
add esp, 8
cmp eax, edi
je 0x40dc2d
cmp byte [eax], 0
je 0x40dc2d
lea ecx, [ebp + 0x38]
push ecx
push ebp
call fcn.0040dec0
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x40]
lea edx, [esp + 0x24]
push edx
push eax
push ecx
push ebp
call fcn.0040ab40
add esp, 0x18
cmp eax, 1
jne 0x40dbed
mov edx, dword [esp + 0x538]
pop edi
pop esi
pop ebp
mov byte [edx], al
mov edx, dword [esp + 0x528]
mov eax, dword [esp + 0x10]
pop ebx
mov dword [edx], eax
mov eax, dword [esp + 0x10]
add esp, 0x518
ret
cmp dword [esp + 0x1c], edi
jne 0x40dc94
mov eax, dword [ebp + 0x44]
push eax
push 0x429c90
push ebx
call fcn.00414a30
mov edx, dword [esp + 0x540]
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x20], 5
mov dword [edx], eax
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
mov edx, dword [ebp + 0x30]
xor eax, eax
mov ax, word [ebp + 0x54]
lea ecx, [esp + 0x1c]
push ecx
push eax
push edx
push ebp
mov dword [ebp + 0x50], eax
call fcn.0040ab40
add esp, 0x10
cmp eax, 1
jne 0x40dc74
mov eax, dword [esp + 0x538]
mov edx, dword [esp + 0x534]
pop edi
pop esi
mov byte [eax], 1
mov eax, dword [esp + 0x14]
mov dword [edx], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x518
ret
cmp dword [esp + 0x1c], edi
jne 0x40dc94
mov ecx, dword [ebp + 0x34]
push ecx
push 0x429c74
push ebx
call fcn.00414a30
add esp, 0xc
mov dword [esp + 0x20], 6
mov edx, dword [esp + 0x534]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [edx], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x518
ret