Function at 0x409a40
Capabilities:
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x644
mov eax, dword [esp + 0x648]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp eax, edi
mov dword [esp + 0x14], esi
je 0x40aa0f
cmp byte [esi], 0
je 0x40aa0f
mov al, byte [esi + 0x431]
mov dword [esp + 0x38], 1
test al, al
mov dword [esp + 0x3c], 0xa
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x44], 0x1e
mov dword [esp + 0x48], 0x32
mov dword [esp + 0x4c], 0x64
mov dword [esp + 0x50], edi
je 0x409ab0
mov ebx, dword [esi + 0x428]
jmp 0x409ab2
xor ebx, ebx
test al, al
je 0x409ac2
mov ecx, dword [esi + 0x42c]
mov dword [esp + 0x10], ecx
jmp 0x409ac6
mov dword [esp + 0x10], edi
cmp ebx, edi
je 0x409ad8
test al, al
jne 0x409c6e
mov esi, dword [esp + 0x14]
xor edi, edi
cmp ebx, edi
mov dword [esi + 0x434], 0xffffffff
mov byte [esi + 0x438], 0
je 0x409b03
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi + 0x42c], edi
mov dword [esi + 0x428], edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push esi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x409b77
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, esi
je 0x409c32
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [esp + 0x38]
mov eax, dword [edi]
test eax, eax
je 0x409b6e
push eax
add edi, 4
call ebp
mov eax, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x409b40
jmp 0x409b77
cmp esi, 0xffffffff
je 0x40aa0f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409b9d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 2
jae 0x409bb0
push esi
call ebp
or esi, 0xffffffff
xor edi, edi
lea ecx, [edi + 2]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebx, eax
test edi, edi
jbe 0x409c0f
lea edx, [esp + 0x34]
push 0
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409bdd
cmp dword [esp + 0x34], edi
je 0x409c0f
push esi
call ebp
xor esi, esi
cmp ebx, esi
je 0x409bf0
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax + 0x428], esi
mov dword [eax + 0x42c], esi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
cmp esi, 0xffffffff
je 0x409c17
push esi
call ebp
xor eax, eax
test edi, edi
jle 0x409c2c
cmp byte [eax + ebx], 0
jne 0x409c27
mov byte [eax + ebx], 0x20
inc eax
cmp eax, edi
jl 0x409c1d
mov dword [esp + 0x10], edi
jmp 0x409c4b
push 2
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, dword [esp + 0x14]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x14]
mov byte [edi + ebx], 0
mov byte [edi + ebx + 1], 0
mov cl, byte [eax + 0x431]
test cl, cl
je 0x409c6e
mov dword [eax + 0x428], ebx
mov dword [eax + 0x42c], edi
mov edi, dword [esp + 0x660]
mov edx, dword [esp + 0x65c]
xor esi, esi
cmp edi, esi
mov dword [esp + 0x30], esi
sete al
cmp edx, esi
mov byte [esp + 0x1a], al
sete byte [esp + 0x1b]
test al, al
mov dword [esp + 0x28], esi
jne 0x409cf8
movsx eax, byte [edi]
mov ebp, dword [sym.imp.MSVCRT.dll_isspace]
push eax
call ebp
add esp, 4
test eax, eax
je 0x409cc1
movsx ecx, byte [esi + edi + 1]
inc esi
push ecx
call ebp
add esp, 4
test eax, eax
jne 0x409cad
mov dword [esp + 0x30], esi
lea ebp, [esi + edi]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test esi, esi
mov dword [esp + 0x28], esi
jle 0x409cf8
mov edi, dword [sym.imp.MSVCRT.dll_isspace]
movsx edx, byte [esi + ebp - 1]
push edx
call edi
add esp, 4
test eax, eax
je 0x409cf4
dec esi
test esi, esi
jg 0x409ce0
mov dword [esp + 0x28], esi
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x1b]
test al, al
jne 0x409d6a
mov eax, dword [esp + 0x14]
mov ebp, dword [eax + 0x434]
test ebp, ebp
jl 0x409d6a
mov edi, dword [esp + 0x658]
mov ecx, eax
lea esi, [ecx + 0x438]
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x409d4b
test al, al
je 0x409d47
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x409d4b
add esi, 2
add edi, 2
test al, al
jne 0x409d27
xor eax, eax
jmp 0x409d50
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x409d6a
mov eax, dword [ecx + 0x42c]
sub eax, 2
cmp ebp, eax
jge 0x409d6a
mov dword [esp + 0x1c], ebp
jmp 0x409e82
push 0x5b
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x409e82
mov ecx, dword [esp + 0x10]
mov eax, edi
sub eax, ebx
cmp eax, ecx
jge 0x409e82
movsx ecx, byte [edi + 1]
mov dword [esp + 0x2c], eax
mov ebp, dword [sym.imp.MSVCRT.dll_toupper]
lea eax, [edi + 1]
push ecx
mov dword [esp + 0x24], eax
call ebp
mov edx, dword [esp + 0x65c]
mov esi, eax
movsx eax, byte [edx]
push eax
call ebp
add esp, 8
cmp esi, eax
jne 0x409e5c
lea esi, [edi - 1]
cmp esi, ebx
jb 0x409dfc
mov al, byte [esi]
cmp al, 0xa
je 0x409de7
movsx ecx, al
push ecx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x409de7
dec esi
cmp esi, ebx
jae 0x409dc9
jmp 0x409dfc
cmp esi, ebx
jb 0x409dfc
movsx edx, byte [esi]
push edx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x409e5c
mov eax, dword [esp + 0x658]
mov esi, 1
mov cl, byte [eax + 1]
test cl, cl
je 0x409e48
jmp 0x409e17
mov ebp, dword [sym.imp.MSVCRT.dll_toupper]
movsx ecx, byte [esi + eax]
push ecx
call ebp
mov edx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], edx
movsx ecx, byte [eax + esi]
push ecx
call ebp
mov edx, dword [esp + 0x2c]
add esp, 8
cmp edx, eax
jne 0x409e48
mov eax, dword [esp + 0x658]
inc esi
cmp byte [esi + eax], 0
jne 0x409e11
mov eax, dword [esp + 0x658]
cmp byte [esi + eax], 0
jne 0x409e5c
cmp byte [esi + edi + 1], 0x5d
je 0x409e78
mov ecx, dword [esp + 0x20]
push 0x5b
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
jne 0x409d80
jmp 0x409e82
sub esi, ebx
lea edx, [esi + edi + 2]
mov dword [esp + 0x1c], edx
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
lea eax, [ebp + 0x438]
mov dword [ebp + 0x434], 0xffffffff
mov byte [eax], 0
jne 0x40a0c4
mov al, byte [esp + 0x1b]
test al, al
jne 0x40a0b7
mov al, byte [esp + 0x1a]
test al, al
jne 0x40a0b7
mov eax, dword [esp + 0x658]
push 0x40
lea ecx, [esp + 0x258]
push eax
push ecx
call fcn.00411fe0
mov ebp, dword [sym.imp.MSVCRT.dll__strupr]
push eax
call ebp
add esp, 0x10
lea edx, [esp + 0x54]
push eax
push str._r_n__s_
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x4248dc
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x54]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x254]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa9]
push str._r_n_r_n__s__r_n
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x668]
push 0x3fa
lea eax, [esp + 0x264]
push edx
push eax
call fcn.00411fe0
push eax
call fcn.00412070
push eax
call ebp
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x254]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x54]
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
cmp edx, 8
rep movsb byte es:[edi], byte [esi]
jge 0x409faf
lea edx, [esp + 0x54]
mov edi, str._t_t
jmp 0x409fc2
cmp edx, 0x10
lea edx, [esp + 0x54]
mov edi, 0x4248c4
jl 0x409fc2
mov edi, 0x4248c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov edx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [eax + ebp]
lea eax, [ecx + edx]
mov dword [esp + 0x24], eax
add eax, 4
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_realloc]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov ebx, ecx
lea esi, [esp + 0x5c]
lea edi, [edx + eax]
add esp, 8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x660]
mov ecx, dword [esp + 0x28]
add esi, edi
lea edi, [edx + ebp]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov byte [ecx + eax], 0xd
inc ecx
mov byte [ecx + eax], 0xa
inc ecx
mov byte [ecx + eax], 0
mov byte [ecx + eax + 1], 0
mov bl, byte [edx + 0x431]
mov byte [edx + 0x430], 1
test bl, bl
jne 0x40a098
push ecx
push eax
mov ecx, edx
call fcn.0040b1c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [edx + 0x428], eax
mov dword [edx + 0x42c], ecx
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
mov al, byte [ebp + 0x431]
test al, al
jmp 0x40a48f
mov cl, byte [esp + 0x1b]
test cl, cl
je 0x40a33d
mov eax, dword [esp + 0x1c]
push 0x5b
add eax, ebx
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x40a27c
mov eax, dword [esp + 0x10]
mov ecx, esi
sub ecx, ebx
cmp ecx, eax
jge 0x40a27c
lea edi, [esi - 1]
cmp edi, ebx
jb 0x40a14f
mov al, byte [edi]
cmp al, 0xa
je 0x40a121
movsx edx, al
push edx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x40a121
dec edi
cmp edi, ebx
jb 0x40a14f
jmp 0x40a103
cmp edi, ebx
jb 0x40a14f
movsx eax, byte [edi]
push eax
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
jne 0x40a14f
inc esi
push 0x5b
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x40a27c
jmp 0x40a0ec
mov ebp, dword [esp + 0x2c]
cmp ebp, 0x53
jle 0x40a1b7
cmp byte [ebx + ebp - 0x53], 0x23
jne 0x40a1b7
mov edx, dword [esp + 0x658]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebx + ebp - 0x50]
push edx
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x40a1b7
sub ebp, 0x53
cmp ebp, 1
jle 0x40a1b7
movsx edx, byte [ebx + ebp - 1]
push edx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x40a1b7
movsx eax, byte [ebx + ebp - 2]
push eax
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x40a1b7
sub ebp, 2
mov ecx, esi
sub ecx, ebx
cmp ecx, 0x53
jle 0x40a203
mov al, byte [esi - 0x53]
lea edi, [esi - 0x53]
cmp al, 0x23
jne 0x40a203
cmp byte [esi - 2], 0xd
jne 0x40a203
cmp byte [esi - 1], 0xa
jne 0x40a203
push 0xd
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
lea edx, [esi - 4]
add esp, 8
cmp eax, edx
jne 0x40a203
mov esi, edi
mov eax, esi
sub eax, ebx
cmp eax, 2
jle 0x40a203
cmp byte [esi - 2], 0xd
jne 0x40a203
cmp byte [esi - 1], 0xa
jne 0x40a203
add esi, 0xfffffffe
mov edi, dword [esp + 0x10]
lea edx, [ebx + ebp]
mov ecx, edi
sub ecx, esi
add ecx, ebx
push ecx
push esi
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
sub ebp, esi
add ebp, ebx
add edi, ebp
lea eax, [edi + 2]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_realloc]
mov ecx, dword [esp + 0x28]
mov byte [edi + eax], 0
mov byte [edi + eax + 1], 0
add esp, 0x14
mov dl, byte [ecx + 0x431]
mov byte [ecx + 0x430], 1
test dl, dl
jne 0x40a261
push edi
push eax
call fcn.0040b1c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
mov dword [ecx + 0x42c], edi
pop edi
pop esi
mov dword [ecx + 0x428], eax
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
mov esi, dword [esp + 0x2c]
cmp esi, 0x53
jle 0x40a2e2
cmp byte [esi + ebx - 0x53], 0x23
jne 0x40a2e2
mov edx, dword [esp + 0x658]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esi + ebx - 0x50]
push edx
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x40a2e2
sub esi, 0x53
cmp esi, 1
jle 0x40a2e2
movsx edx, byte [esi + ebx - 1]
mov edi, dword [sym.imp.MSVCRT.dll_isspace]
push edx
call edi
add esp, 4
test eax, eax
je 0x40a2e2
movsx eax, byte [esi + ebx - 2]
push eax
call edi
add esp, 4
test eax, eax
je 0x40a2e2
sub esi, 2
lea ecx, [esi + 2]
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_realloc]
mov byte [esi + eax], 0
mov byte [esi + eax + 1], 0
mov cl, byte [ebp + 0x431]
add esp, 8
test cl, cl
mov byte [ebp + 0x430], 1
jne 0x40a322
push esi
push eax
mov ecx, ebp
call fcn.0040b1c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
mov dword [ebp + 0x42c], esi
pop edi
mov dword [ebp + 0x428], eax
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
mov edx, dword [esp + 0x658]
mov esi, dword [esp + 0x1c]
push 0x100
push edx
push eax
mov dword [ebp + 0x434], esi
call fcn.00411fe0
lea edi, [esi + ebx]
add esp, 0xc
mov esi, edi
mov dword [esp + 0x20], edi
test esi, esi
je 0x40a477
mov ecx, dword [esp + 0x10]
mov eax, esi
sub eax, ebx
cmp eax, ecx
jge 0x40a477
movsx ecx, byte [esi]
mov ebp, dword [sym.imp.MSVCRT.dll_isspace]
push ecx
call ebp
add esp, 4
test eax, eax
je 0x40a3a0
movsx edx, byte [esi + 1]
inc esi
push edx
call ebp
add esp, 4
test eax, eax
jne 0x40a391
cmp byte [esi], 0x5b
je 0x40a477
mov edi, dword [esp + 0x65c]
mov ebp, dword [sym.imp.MSVCRT.dll_toupper]
movsx eax, byte [edi]
push eax
call ebp
movsx ecx, byte [esi]
mov edx, eax
push ecx
mov dword [esp + 0x2c], edx
call ebp
mov edx, dword [esp + 0x2c]
add esp, 8
cmp eax, edx
jne 0x40a45c
mov cl, byte [edi + 1]
lea eax, [edi + 1]
test cl, cl
mov dword [esp + 0x2c], 1
je 0x40a435
mov ecx, dword [esp + 0x65c]
mov edi, eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x24], eax
jmp 0x40a400
mov eax, dword [esp + 0x24]
movsx eax, byte [eax + edi]
mov ebp, dword [sym.imp.MSVCRT.dll_toupper]
push eax
call ebp
movsx ecx, byte [edi]
mov edx, eax
push ecx
mov dword [esp + 0x24], edx
call ebp
mov edx, dword [esp + 0x24]
add esp, 8
cmp eax, edx
jne 0x40a435
mov edx, dword [esp + 0x2c]
mov al, byte [edi + 1]
inc edx
inc edi
test al, al
mov dword [esp + 0x2c], edx
jne 0x40a3fc
mov ecx, dword [esp + 0x65c]
mov eax, dword [esp + 0x2c]
cmp byte [eax + ecx], 0
jne 0x40a45c
mov ebp, esi
add esi, eax
mov al, byte [esi]
cmp al, 9
je 0x40a454
cmp al, 0x20
jne 0x40a457
inc esi
jmp 0x40a44a
cmp byte [esi], 0x3d
je 0x40a4b6
inc esi
push 0xa
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, dword [esp + 0x28]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a36e
mov al, byte [esp + 0x1a]
test al, al
je 0x40a725
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0x431]
test cl, cl
jne 0x40aa0f
test ebx, ebx
je 0x40aa0f
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x644
ret 0xc
mov al, byte [esp + 0x1a]
test al, al
je 0x40a558
push 0xa
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
add esp, 8
mov edx, edi
inc edi
test edx, edx
je 0x40a4f7
mov esi, dword [esp + 0x10]
mov eax, esi
sub eax, edi
add eax, ebx
test eax, eax
jle 0x40a4f7
push eax
push edi
push ebp
call dword [sym.imp.MSVCRT.dll_memmove]
sub ebp, edi
add esp, 0xc
add esi, ebp
jmp 0x40a4fb
sub ebp, ebx
mov esi, ebp
lea ecx, [esi + 2]
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_realloc]
mov ecx, dword [esp + 0x1c]
mov byte [esi + eax], 0
mov byte [esi + eax + 1], 0
add esp, 8
mov dl, byte [ecx + 0x431]
mov byte [ecx + 0x430], 1
test dl, dl
jne 0x40a53d
push esi
push eax
call fcn.0040b1c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
mov dword [ecx + 0x42c], esi
pop edi
pop esi
mov dword [ecx + 0x428], eax
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
inc esi
mov dword [esp + 0x20], esi
mov ebp, esi
mov al, byte [ebp]
cmp al, 9
je 0x40a56a
cmp al, 0x20
jne 0x40a56d
inc ebp
jmp 0x40a55f
mov al, byte [ebp]
mov edi, ebp
cmp al, 0xd
je 0x40a586
cmp al, 0xa
je 0x40a586
test al, al
je 0x40a586
mov al, byte [edi + 1]
inc edi
cmp al, 0xd
jne 0x40a576
lea eax, [edi - 1]
cmp eax, ebp
mov dword [esp + 0x1c], eax
jb 0x40a5b3
mov edx, dword [esp + 0x1c]
movsx eax, byte [edx]
push eax
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x40a5b3
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, ebp
mov dword [esp + 0x1c], eax
jae 0x40a591
mov eax, dword [esp + 0x28]
sub esi, edi
lea esi, [esi + eax + 1]
test esi, esi
jne 0x40a5d6
test eax, eax
jne 0x40a5d6
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x431]
test al, al
jmp 0x40a48f
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jb 0x40a62c
mov edx, dword [esp + 0x660]
sub eax, ebp
mov dword [esp + 0x24], eax
inc eax
push eax
mov eax, dword [esp + 0x34]
add eax, edx
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40a62c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x660]
add ecx, edx
mov dl, byte [ecx + eax + 1]
test dl, dl
jne 0x40a62c
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x431]
test al, al
jmp 0x40a48f
test esi, esi
mov ebp, ebx
je 0x40a6a8
jge 0x40a65f
mov edx, dword [esp + 0x10]
lea eax, [esi + edi]
sub edx, edi
add edx, ebx
push edx
push edi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + ecx + 2]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 0x14
mov ebx, eax
jmp 0x40a695
mov eax, dword [esp + 0x10]
lea ecx, [esi + eax + 2]
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_realloc]
mov ecx, dword [esp + 0x18]
mov edx, ebp
sub edx, edi
mov ebx, eax
add edx, ecx
mov ecx, esi
mov eax, edi
sub ecx, ebp
sub eax, ebp
add ecx, edi
add eax, ebx
push edx
add ecx, ebx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0x14
mov edx, dword [esp + 0x10]
add esi, edx
mov dword [esp + 0x10], esi
mov byte [esi + ebx], 0
mov byte [esi + ebx + 1], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x660]
sub eax, ebp
add esi, edx
add eax, ebx
mov byte [eax], 0x20
lea edi, [eax + 1]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [eax + 0x431]
mov byte [eax + 0x430], 1
test cl, cl
jne 0x40a706
mov ecx, dword [esp + 0x10]
push ecx
push ebx
mov ecx, eax
call fcn.0040b1c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + 0x428], ebx
mov dword [eax + 0x42c], edx
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
push 0x5b
push edi
mov dword [esp + 0x28], 1
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40a872
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
mov ecx, ebp
sub ecx, ebx
cmp ecx, eax
jge 0x40a862
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a78f
push str._r_n_r_n
push edi
call esi
add esp, 8
test eax, eax
je 0x40a78f
push str._r_n_r_n
push edi
call esi
add esp, 8
cmp eax, ebp
jae 0x40a78f
push str._r_n_r_n
push edi
call esi
mov ebp, eax
add esp, 8
add ebp, 2
lea esi, [ebp - 1]
mov dword [esp + 0x20], 0
cmp esi, ebx
jb 0x40a7ed
mov al, byte [esi]
cmp al, 0xa
je 0x40a7bc
movsx edx, al
push edx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x40a7bc
dec esi
cmp esi, ebx
jb 0x40a7ed
jmp 0x40a79e
cmp esi, ebx
jb 0x40a7ed
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
jne 0x40a7ed
inc ebp
push 0x5b
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40a872
jmp 0x40a743
mov ecx, ebp
sub ecx, ebx
cmp ecx, 0x53
jle 0x40a821
mov al, byte [ebp - 0x53]
lea edi, [ebp - 0x53]
cmp al, 0x23
jne 0x40a821
cmp byte [ebp - 2], 0xd
jne 0x40a821
cmp byte [ebp - 1], 0xa
jne 0x40a821
push 0xd
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
lea edx, [ebp - 4]
add esp, 8
cmp eax, edx
jne 0x40a821
mov ebp, edi
cmp ebp, ebx
jbe 0x40a836
cmp byte [ebp], 0x23
jne 0x40a836
cmp byte [ebp - 1], 0x23
jne 0x40a836
dec ebp
cmp ebp, ebx
ja 0x40a825
lea eax, [ebx + 4]
cmp esi, eax
jbe 0x40a862
lea edi, [ebp - 4]
push 4
push str._r_n_r_n
push edi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40a862
lea eax, [ebx + 4]
sub ebp, 2
sub edi, 2
cmp esi, eax
ja 0x40a840
test ebp, ebp
je 0x40a872
mov ecx, dword [esp + 0x10]
mov eax, ebp
sub eax, ebx
cmp eax, ecx
jl 0x40a879
mov ecx, dword [esp + 0x10]
lea ebp, [ecx + ebx]
mov edx, dword [esp + 0x65c]
push 0x3fa
lea eax, [esp + 0x258]
push edx
push eax
call fcn.00411fe0
push eax
call fcn.00412070
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
jge 0x40a8c2
lea edx, [esp + 0x254]
mov edi, str._t_t
jmp 0x40a8d8
cmp ecx, 0x10
lea edx, [esp + 0x254]
mov edi, 0x4248c4
jl 0x40a8d8
mov edi, 0x4248c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
mov esi, ebx
not ecx
dec ecx
mov dword [esp + 0x20], esi
mov edi, ecx
mov dword [esp + 0x24], edi
lea ecx, [edi + eax]
lea eax, [ecx + edx]
mov dword [esp + 0x2c], eax
add eax, 4
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_realloc]
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esi + eax]
cmp ebp, ecx
jae 0x40a96b
mov edx, esi
sub edi, esi
sub edx, ebp
add edi, ebp
add edx, eax
mov eax, ebp
sub eax, esi
mov esi, dword [esp + 0x28]
add edi, esi
add eax, ebx
push edx
push eax
lea ecx, [edi + ebx + 2]
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, ebp
mov ecx, eax
sub edi, edx
mov edx, ecx
lea esi, [esp + 0x254]
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
sub eax, esi
mov esi, dword [esp + 0x660]
add ebp, eax
mov eax, dword [esp + 0x28]
mov ecx, eax
add esi, edx
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [0x4248b4]
mov ecx, dword [esp + 0x2c]
mov word [ebx + ebp], ax
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x14]
mov byte [eax + ebx], 0
mov byte [eax + ebx + 1], 0
mov dl, byte [ecx + 0x431]
mov byte [ecx + 0x430], 1
test dl, dl
jne 0x40aa03
push eax
push ebx
call fcn.0040b1c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc
mov dword [ecx + 0x428], ebx
mov dword [ecx + 0x42c], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x644
ret 0xc