Function at 0x415d30
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2d0
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x416d2e
mov ebx, dword [esp + 0x2f0]
cmp byte [ebx], 0
je 0x416d2e
xor edi, edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 3
push edi
push edi
push closesocket
push ebx
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 0xa
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x64], 0x1e
mov dword [esp + 0x68], 0x32
mov dword [esp + 0x6c], 0xc8
mov dword [esp + 0x70], 0x1f4
mov dword [esp + 0x74], edi
mov dword [esp + 0x44], edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x415e0a
push ebx
call fcn.004148e0
add esp, 4
test al, al
je 0x415e19
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x415e01
mov eax, dword [edi]
test eax, eax
je 0x415e01
push eax
add edi, 4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push ebx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x415dc8
jmp 0x415e0a
cmp esi, 0xffffffff
je 0x416d2e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [esp + 0x28], edi
lea eax, [edi + 2]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebx, eax
test edi, edi
mov dword [esp + 0x18], ebx
jbe 0x415e48
lea ecx, [esp + 0x5c]
push 0
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416720
cmp esi, 0xffffffff
je 0x415e54
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x2e8]
mov byte [ebx + edi], 0
mov byte [ebx + edi + 1], 0
mov edi, dword [esp + 0x2ec]
test edi, edi
sete al
test edx, edx
sete byte [esp + 0x27]
xor esi, esi
mov byte [esp + 0x1f], al
test al, al
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
jne 0x415ee7
movsx edx, byte [edi]
mov ebp, dword [sym.imp.MSVCRT.dll_isspace]
push edx
call ebp
add esp, 4
test eax, eax
je 0x415eb0
movsx eax, byte [esi + edi + 1]
inc esi
push eax
call ebp
add esp, 4
test eax, eax
jne 0x415e9c
mov dword [esp + 0x2c], 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 + 0x30], esi
jle 0x415ee7
mov edi, dword [sym.imp.MSVCRT.dll_isspace]
movsx ecx, byte [esi + ebp - 1]
push ecx
call edi
add esp, 4
test eax, eax
je 0x415ee3
dec esi
test esi, esi
jg 0x415ecf
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x2e4]
mov edi, dword [sym.imp.MSVCRT.dll_toupper]
movsx eax, byte [edx]
push eax
call edi
push 0x5b
push ebx
mov byte [esp + 0x2a], al
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x41601b
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, ebx
cmp eax, ecx
jge 0x41601b
movsx ecx, byte [ebp + 1]
mov dword [esp + 0x14], eax
lea eax, [ebp + 1]
push ecx
mov dword [esp + 0x24], eax
call edi
movsx edx, byte [esp + 0x22]
add esp, 4
cmp eax, edx
jne 0x415fed
lea esi, [ebp - 1]
cmp esi, ebx
jb 0x415f80
mov al, byte [esi]
cmp al, 0xa
je 0x415f6b
movsx eax, al
push eax
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x415f6b
dec esi
cmp esi, ebx
jae 0x415f4d
jmp 0x415f80
cmp esi, ebx
jb 0x415f80
movsx ecx, byte [esi]
push ecx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x415fed
mov edx, dword [esp + 0x2e4]
mov esi, 1
mov al, byte [edx + 1]
test al, al
je 0x415fd9
jmp 0x415f9b
mov edi, dword [sym.imp.MSVCRT.dll_toupper]
mov eax, dword [esp + 0x20]
movsx ecx, byte [eax + esi]
push ecx
call edi
mov edx, eax
mov eax, dword [esp + 0x2e8]
mov dword [esp + 0x38], edx
movsx ecx, byte [esi + eax]
push ecx
call edi
mov edx, dword [esp + 0x3c]
add esp, 8
cmp eax, edx
jne 0x415fd3
mov eax, dword [esp + 0x2e4]
inc esi
cmp byte [esi + eax], 0
jne 0x415f95
mov edi, dword [sym.imp.MSVCRT.dll_toupper]
mov ecx, dword [esp + 0x2e4]
cmp byte [esi + ecx], 0
jne 0x415fed
cmp byte [esi + ebp + 1], 0x5d
je 0x416009
mov edx, dword [esp + 0x20]
push 0x5b
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x415f14
jmp 0x41601b
sub esi, ebx
lea esi, [esi + ebp + 2]
test esi, esi
mov dword [esp + 0x38], esi
jne 0x41623e
mov al, byte [esp + 0x27]
test al, al
jne 0x4168ea
mov al, byte [esp + 0x1f]
test al, al
jne 0x4168ea
mov eax, dword [esp + 0x2e4]
push 0x80
lea ecx, [esp + 0x64]
push eax
push ecx
call fcn.00411fe0
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0xe0]
push eax
push str._r_n__s_
push edx
call ebp
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 + 0xe0]
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 + 0x60]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x135]
push str._r_n_r_n__s__r_n
push ecx
call ebp
mov edx, dword [esp + 0x2fc]
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41612f
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea esi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x416126
mov eax, dword [esi]
test eax, eax
je 0x416126
push eax
add esi, 4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x2f0]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4160e6
jmp 0x41612f
cmp ebp, 0xffffffff
je 0x416727
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edi, [esp + 0xe8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0xe8]
not ecx
dec ecx
push ecx
push edx
push ebp
call ebx
mov eax, dword [esp + 0x2e8]
push 0x7c
lea ecx, [esp + 0x64]
push eax
push ecx
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 0x4161a6
lea edx, [esp + 0x60]
mov edi, str._t_t
jmp 0x4161b9
cmp ecx, 0x10
lea edx, [esp + 0x60]
mov edi, 0x4248c4
jl 0x4161b9
mov edi, 0x4248c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x6c]
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x41621c
mov ecx, dword [esp + 0x2ec]
lea edx, [esp + 0x10]
push 0
push edx
push eax
mov eax, dword [esp + 0x38]
add eax, ecx
push eax
push ebp
call ebx
lea edx, [esp + 0x10]
push 0
push edx
push 2
push 0x4248b4
push ebp
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push eax
jmp 0x416d25
mov al, byte [esp + 0x27]
test al, al
je 0x41653d
add esi, ebx
push 0x5b
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x416434
mov edi, dword [sym.imp.MSVCRT.dll_isspace]
mov eax, dword [esp + 0x28]
mov ecx, ebp
sub ecx, ebx
cmp ecx, eax
jge 0x416434
lea esi, [ebp - 1]
cmp esi, ebx
jb 0x4162c3
mov al, byte [esi]
cmp al, 0xa
je 0x416299
movsx edx, al
push edx
call edi
add esp, 4
test eax, eax
je 0x416299
dec esi
cmp esi, ebx
jb 0x4162c3
jmp 0x41627f
cmp esi, ebx
jb 0x4162c3
movsx eax, byte [esi]
push eax
call edi
add esp, 4
test eax, eax
jne 0x4162c3
inc ebp
push 0x5b
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x416434
jmp 0x416268
mov eax, dword [esp + 0x14]
cmp eax, 0x53
jle 0x416337
mov ecx, eax
cmp byte [ecx + ebx - 0x53], 0x23
jne 0x416337
mov edx, dword [esp + 0x2e4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x14]
not ecx
dec ecx
push ecx
push edx
lea edx, [esi + ebx - 0x50]
push edx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x416337
sub esi, 0x53
cmp esi, 1
mov dword [esp + 0x14], esi
jle 0x416337
movsx eax, byte [esi + ebx - 1]
mov edi, dword [sym.imp.MSVCRT.dll_isspace]
push eax
call edi
add esp, 4
test eax, eax
je 0x416337
movsx ecx, byte [esi + ebx - 2]
push ecx
call edi
add esp, 4
test eax, eax
je 0x416337
sub esi, 2
mov dword [esp + 0x14], esi
mov edx, ebp
sub edx, ebx
cmp edx, 0x53
jle 0x416383
mov al, byte [ebp - 0x53]
lea esi, [ebp - 0x53]
cmp al, 0x23
jne 0x416383
cmp byte [ebp - 2], 0xd
jne 0x416383
cmp byte [ebp - 1], 0xa
jne 0x416383
push 0xd
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [ebp - 4]
add esp, 8
cmp eax, ecx
jne 0x416383
mov ebp, esi
mov edx, ebp
sub edx, ebx
cmp edx, 2
jle 0x416383
cmp byte [ebp - 2], 0xd
jne 0x416383
cmp byte [ebp - 1], 0xa
jne 0x416383
add ebp, 0xfffffffe
mov eax, dword [esp + 0x2f0]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4163fb
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x4163f2
mov eax, dword [edi]
test eax, eax
je 0x4163f2
push eax
add edi, 4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x2f0]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4163ae
jmp 0x4163fb
cmp esi, 0xffffffff
je 0x416727
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push ebx
push esi
call edi
mov eax, dword [esp + 0x28]
mov edx, ebx
sub edx, ebp
lea ecx, [esp + 0x10]
push 0
add edx, eax
push ecx
push edx
push ebp
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
jmp 0x416d25
mov eax, dword [esp + 0x14]
cmp eax, 0x53
jle 0x4164a6
cmp byte [eax + ebx - 0x53], 0x23
jne 0x4164a6
mov edx, dword [esp + 0x2e4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x14]
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 0x4164a6
sub esi, 0x53
cmp esi, 1
mov dword [esp + 0x14], esi
jle 0x4164a6
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 0x4164a6
movsx eax, byte [esi + ebx - 2]
push eax
call edi
add esp, 4
test eax, eax
je 0x4164a6
sub esi, 2
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x2f0]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x41651c
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x416513
mov eax, dword [edi]
test eax, eax
je 0x416513
push eax
add edi, 4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x2f0]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4164d3
jmp 0x41651c
cmp esi, 0xffffffff
je 0x416727
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
jmp 0x416d25
mov edx, dword [esp + 0x2e8]
movsx eax, byte [edx]
push eax
call edi
lea edi, [esi + ebx]
add esp, 4
mov esi, edi
mov byte [esp + 0x1e], al
test esi, esi
mov dword [esp + 0x14], edi
je 0x4168e2
mov eax, dword [esp + 0x28]
mov ecx, esi
sub ecx, ebx
cmp ecx, eax
jge 0x4168e2
movsx edx, byte [esi]
mov edi, dword [sym.imp.MSVCRT.dll_isspace]
push edx
call edi
add esp, 4
test eax, eax
je 0x416594
movsx eax, byte [esi + 1]
inc esi
push eax
call edi
add esp, 4
test eax, eax
jne 0x416585
mov al, byte [esi]
cmp al, 0x5b
je 0x4168de
movsx ecx, al
push ecx
call dword [sym.imp.MSVCRT.dll_toupper]
movsx edx, byte [esp + 0x22]
add esp, 4
cmp eax, edx
jne 0x416639
mov eax, dword [esp + 0x2e8]
mov ecx, 1
inc eax
mov dword [esp + 0x20], ecx
cmp byte [eax], 0
je 0x416614
mov edi, eax
mov eax, dword [esp + 0x2e8]
mov ebp, esi
sub ebp, eax
movsx ecx, byte [edi + ebp]
mov ebx, dword [sym.imp.MSVCRT.dll_toupper]
push ecx
call ebx
mov edx, eax
movsx eax, byte [edi]
push eax
mov dword [esp + 0x3c], edx
call ebx
mov ecx, dword [esp + 0x3c]
add esp, 8
cmp eax, ecx
jne 0x416610
mov edx, dword [esp + 0x20]
mov al, byte [edi + 1]
inc edx
inc edi
test al, al
mov dword [esp + 0x20], edx
jne 0x4165db
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2e8]
cmp byte [ecx + edx], 0
jne 0x416639
mov dword [esp + 0x34], esi
add esi, ecx
mov al, byte [esi]
cmp al, 9
je 0x416631
cmp al, 0x20
jne 0x416634
inc esi
jmp 0x416627
cmp byte [esi], 0x3d
je 0x41665d
inc esi
push 0xa
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov esi, eax
add esp, 8
test esi, esi
jne 0x416562
jmp 0x4168e2
mov al, byte [esp + 0x1f]
test al, al
je 0x41673c
push 0xa
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, dword [esp + 0x2f8]
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebp
mov dword [esp + 0x48], edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4166e3
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x41672d
mov eax, dword [edi]
test eax, eax
je 0x41672d
push eax
add edi, 4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebp
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4166a8
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x10]
push 0
sub eax, ebx
push ecx
push eax
push ebx
push esi
call ebp
mov edx, edi
inc edi
test edx, edx
je 0x416720
mov ecx, dword [esp + 0x28]
mov eax, ebx
sub eax, edi
add eax, ecx
test eax, eax
jbe 0x416720
lea edx, [esp + 0x10]
push 0
push edx
push eax
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
jmp 0x416d25
cmp esi, 0xffffffff
jne 0x4166df
mov eax, dword [esp + 0x18]
push eax
jmp 0x416d25
inc esi
mov dword [esp + 0x20], esi
mov al, byte [esi]
cmp al, 9
je 0x41674b
cmp al, 0x20
jne 0x41674e
inc esi
jmp 0x416741
mov al, byte [esi]
mov edi, esi
cmp al, 0xd
mov dword [esp + 0x14], edi
je 0x41676e
cmp al, 0xa
je 0x41676a
test al, al
je 0x41676a
mov al, byte [edi + 1]
inc edi
cmp al, 0xd
jne 0x41675a
mov dword [esp + 0x14], edi
dec edi
cmp edi, esi
jb 0x41678b
mov ebx, dword [sym.imp.MSVCRT.dll_isspace]
movsx eax, byte [edi]
push eax
call ebx
add esp, 4
test eax, eax
je 0x4167f5
dec edi
cmp edi, esi
jae 0x416779
mov ebx, dword [esp + 0x2f0]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x416847
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x416838
mov eax, dword [edi]
test eax, eax
je 0x416838
push eax
add edi, 4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4167bc
jmp 0x416847
cmp edi, esi
jb 0x41678b
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x2ec]
sub edi, esi
lea edx, [ebx + ebp]
lea ecx, [edi + 1]
push ecx
push edx
push esi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x41678b
add edi, ebx
mov al, byte [edi + ebp + 1]
test al, al
jne 0x41678b
mov eax, dword [esp + 0x18]
push eax
jmp 0x416d25
cmp esi, 0xffffffff
jne 0x416847
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x416d25
mov edx, dword [esp + 0x20]
push 0
cmp byte [edx], 0x20
jne 0x41686b
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, edx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, ebp
inc eax
push eax
push ebp
push esi
jmp 0x416894
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x14]
sub eax, ebp
push ecx
push eax
push ebp
push esi
call edi
lea edx, [esp + 0x10]
push 0
push edx
push 1
push 0x425810
push esi
call edi
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x4168b7
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
mov eax, dword [esp + 0x2f8]
add edx, eax
push edx
push esi
call edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
mov edx, ebp
push ecx
mov ecx, dword [esp + 0x30]
sub edx, eax
add edx, ecx
push edx
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
jmp 0x416d25
mov edi, dword [esp + 0x14]
mov al, byte [esp + 0x1f]
test al, al
je 0x4168f0
push ebx
jmp 0x416d25
push 0x5b
push edi
mov dword [esp + 0x28], 1
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x416bad
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov eax, ebx
sub eax, ebp
cmp eax, ecx
jge 0x416bad
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41695e
push str._r_n_r_n
push edi
call esi
add esp, 8
test eax, eax
je 0x41695e
push str._r_n_r_n
push edi
call esi
add esp, 8
cmp eax, ebx
jae 0x41695e
push str._r_n_r_n
push edi
call esi
mov ebx, eax
add esp, 8
add ebx, 2
lea esi, [ebx - 1]
mov dword [esp + 0x20], 0
cmp esi, ebp
jb 0x4169c2
mov al, byte [esi]
cmp al, 0xa
je 0x41698b
movsx ecx, al
push ecx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x41698b
dec esi
cmp esi, ebp
jb 0x4169c2
jmp 0x41696d
cmp esi, ebp
jb 0x4169c2
movsx edx, byte [esi]
push edx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
jne 0x4169c2
inc ebx
push 0x5b
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x416bad
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
jmp 0x416918
mov eax, ebx
sub eax, ebp
cmp eax, 0x53
jle 0x4169f6
mov al, byte [ebx - 0x53]
lea edi, [ebx - 0x53]
cmp al, 0x23
jne 0x4169f6
cmp byte [ebx - 2], 0xd
jne 0x4169f6
cmp byte [ebx - 1], 0xa
jne 0x4169f6
push 0xd
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [ebx - 4]
add esp, 8
cmp eax, ecx
jne 0x4169f6
mov ebx, edi
add ebp, 4
cmp esi, ebp
jbe 0x416a1f
lea edi, [ebx - 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 0x416a1f
sub ebx, 2
sub edi, 2
cmp esi, ebp
ja 0x416a00
mov edx, dword [esp + 0x2f0]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x416a92
lea esi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x416aea
mov eax, dword [esi]
test eax, eax
je 0x416aea
push eax
add esi, 4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x2f0]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x416a4c
mov eax, dword [esp + 0x18]
mov ecx, ebx
lea edx, [esp + 0x10]
push 0
sub ecx, eax
push edx
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x2e8]
push 0x7c
lea eax, [esp + 0x64]
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 0x416af9
lea edx, [esp + 0x60]
mov edi, str._t_t
jmp 0x416b0c
cmp ebp, 0xffffffff
jne 0x416a92
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x416d25
cmp ecx, 0x10
lea edx, [esp + 0x60]
mov edi, 0x4248c4
jl 0x416b0c
mov edi, 0x4248c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x6c]
push ecx
push ebp
call esi
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x416b75
mov ecx, dword [esp + 0x2ec]
lea edx, [esp + 0x10]
push 0
push edx
push eax
mov eax, dword [esp + 0x38]
add eax, ecx
push eax
push ebp
call esi
lea edx, [esp + 0x10]
push 0
push edx
push 2
push 0x4248b4
push ebp
call esi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
mov ecx, edi
push eax
mov eax, dword [esp + 0x30]
sub ecx, ebx
add ecx, eax
push ecx
push ebx
push ebp
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
jmp 0x416d25
mov edx, dword [esp + 0x2e8]
push 0x7c
lea eax, [esp + 0x64]
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 0x416bed
lea edx, [esp + 0x60]
mov edi, str._t_t
jmp 0x416c00
cmp ecx, 0x10
lea edx, [esp + 0x60]
mov edi, 0x4248c4
jl 0x416c00
mov edi, 0x4248c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x2f0]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0x80
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 4
push eax
and ecx, 3
push eax
push 0x40000000
push ebp
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x416c8e
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x416d3e
mov eax, dword [edi]
test eax, eax
je 0x416d3e
push eax
add edi, 4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push ebp
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x416c4f
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jle 0x416cc9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
cmp byte [edx + ecx - 1], 0xa
je 0x416cc9
lea eax, [esp + 0x10]
push 0
push eax
push 2
push 0x4248b4
push esi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x68]
push ecx
push edx
push esi
call ebx
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x416d08
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
mov eax, dword [esp + 0x2f8]
add edx, eax
push edx
push esi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
push 2
push 0x4248b4
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2d0
ret
cmp esi, 0xffffffff
jne 0x416c8e
mov eax, dword [esp + 0x18]
push eax
jmp 0x416d25