Function at 0x44e590
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 0x44f52e
mov ebx, dword [esp + 0x2f0]
cmp byte [ebx], 0
je 0x44f52e
xor edi, edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
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 0x44e65f
push ebx
call fcn.0044d9c0
add esp, 4
test al, al
je 0x44e66e
lea edi, [esp + 0x3c]
mov eax, dword [edi]
test eax, eax
je 0x44e656
push eax
add edi, 4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ebx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x44e628
jmp 0x44e65f
cmp esi, 0xffffffff
je 0x44f52e
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 0x44e69d
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 0x44ef49
cmp esi, 0xffffffff
je 0x44e6a9
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 0x44e73c
movsx edx, byte [edi]
mov ebp, dword [sym.imp.MSVCRT.dll_isspace]
push edx
call ebp
add esp, 4
test eax, eax
je 0x44e705
movsx eax, byte [esi + edi + 1]
inc esi
push eax
call ebp
add esp, 4
test eax, eax
jne 0x44e6f1
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 0x44e73c
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 0x44e738
dec esi
test esi, esi
jg 0x44e724
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 0x44e870
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, ebx
cmp eax, ecx
jge 0x44e870
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 0x44e842
lea esi, [ebp - 1]
cmp esi, ebx
jb 0x44e7d5
mov al, byte [esi]
cmp al, 0xa
je 0x44e7c0
movsx eax, al
push eax
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x44e7c0
dec esi
cmp esi, ebx
jae 0x44e7a2
jmp 0x44e7d5
cmp esi, ebx
jb 0x44e7d5
movsx ecx, byte [esi]
push ecx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x44e842
mov edx, dword [esp + 0x2e4]
mov esi, 1
mov al, byte [edx + 1]
test al, al
je 0x44e82e
jmp 0x44e7f0
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 0x44e828
mov eax, dword [esp + 0x2e4]
inc esi
cmp byte [esi + eax], 0
jne 0x44e7ea
mov edi, dword [sym.imp.MSVCRT.dll_toupper]
mov ecx, dword [esp + 0x2e4]
cmp byte [esi + ecx], 0
jne 0x44e842
cmp byte [esi + ebp + 1], 0x5d
je 0x44e85e
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 0x44e769
jmp 0x44e870
sub esi, ebx
lea esi, [esi + ebp + 2]
test esi, esi
mov dword [esp + 0x38], esi
jne 0x44ea88
mov al, byte [esp + 0x27]
test al, al
jne 0x44f108
mov al, byte [esp + 0x1f]
test al, al
jne 0x44f108
mov eax, dword [esp + 0x2e4]
push 0x80
lea ecx, [esp + 0x64]
push eax
push ecx
call fcn.0044a7e0
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, str.
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 0x44e979
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea esi, [esp + 0x3c]
mov eax, dword [esi]
test eax, eax
je 0x44e970
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 0x44e93b
jmp 0x44e979
cmp ebp, 0xffffffff
je 0x44ef50
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.0044a7e0
push eax
call fcn.0044a8e0
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 0x44e9f0
lea edx, [esp + 0x60]
mov edi, str._t_t
jmp 0x44ea03
cmp ecx, 0x10
lea edx, [esp + 0x60]
mov edi, 0x471e3c
jl 0x44ea03
mov edi, 0x471e38
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 0x44ea66
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 0x4701bc
push ebp
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push eax
jmp 0x44f525
mov al, byte [esp + 0x27]
test al, al
je 0x44ed71
add esi, ebx
push 0x5b
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x44ec73
mov edi, dword [sym.imp.MSVCRT.dll_isspace]
mov eax, dword [esp + 0x28]
mov ecx, ebp
sub ecx, ebx
cmp ecx, eax
jge 0x44ec73
lea esi, [ebp - 1]
cmp esi, ebx
jb 0x44eb0d
mov al, byte [esi]
cmp al, 0xa
je 0x44eae3
movsx edx, al
push edx
call edi
add esp, 4
test eax, eax
je 0x44eae3
dec esi
cmp esi, ebx
jb 0x44eb0d
jmp 0x44eac9
cmp esi, ebx
jb 0x44eb0d
movsx eax, byte [esi]
push eax
call edi
add esp, 4
test eax, eax
jne 0x44eb0d
inc ebp
push 0x5b
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x44ec73
jmp 0x44eab2
mov eax, dword [esp + 0x14]
cmp eax, 0x53
jle 0x44eb81
mov ecx, eax
cmp byte [ecx + ebx - 0x53], 0x23
jne 0x44eb81
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 0x44eb81
sub esi, 0x53
cmp esi, 1
mov dword [esp + 0x14], esi
jle 0x44eb81
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 0x44eb81
movsx ecx, byte [esi + ebx - 2]
push ecx
call edi
add esp, 4
test eax, eax
je 0x44eb81
sub esi, 2
mov dword [esp + 0x14], esi
mov edx, ebp
sub edx, ebx
cmp edx, 0x53
jle 0x44ebcd
mov al, byte [ebp - 0x53]
lea esi, [ebp - 0x53]
cmp al, 0x23
jne 0x44ebcd
cmp byte [ebp - 2], 0xd
jne 0x44ebcd
cmp byte [ebp - 1], 0xa
jne 0x44ebcd
push 0xd
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [ebp - 4]
add esp, 8
cmp eax, ecx
jne 0x44ebcd
mov ebp, esi
mov edx, ebp
sub edx, ebx
cmp edx, 2
jle 0x44ebcd
cmp byte [ebp - 2], 0xd
jne 0x44ebcd
cmp byte [ebp - 1], 0xa
jne 0x44ebcd
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 0x44ec3a
lea edi, [esp + 0x3c]
mov eax, dword [edi]
test eax, eax
je 0x44ec31
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 0x44ebf8
jmp 0x44ec3a
cmp esi, 0xffffffff
je 0x44ef50
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 0x44f525
mov eax, dword [esp + 0x14]
cmp eax, 0x53
jle 0x44ece5
cmp byte [eax + ebx - 0x53], 0x23
jne 0x44ece5
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 0x44ece5
sub esi, 0x53
cmp esi, 1
mov dword [esp + 0x14], esi
jle 0x44ece5
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 0x44ece5
movsx eax, byte [esi + ebx - 2]
push eax
call edi
add esp, 4
test eax, eax
je 0x44ece5
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 0x44ed50
lea edi, [esp + 0x3c]
mov eax, dword [edi]
test eax, eax
je 0x44ed47
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 0x44ed12
jmp 0x44ed50
cmp esi, 0xffffffff
je 0x44ef50
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 0x44f525
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 0x44f100
mov eax, dword [esp + 0x28]
mov ecx, esi
sub ecx, ebx
cmp ecx, eax
jge 0x44f100
movsx edx, byte [esi]
mov edi, dword [sym.imp.MSVCRT.dll_isspace]
push edx
call edi
add esp, 4
test eax, eax
je 0x44edc8
movsx eax, byte [esi + 1]
inc esi
push eax
call edi
add esp, 4
test eax, eax
jne 0x44edb9
mov al, byte [esi]
cmp al, 0x5b
je 0x44f0fc
movsx ecx, al
push ecx
call dword [sym.imp.MSVCRT.dll_toupper]
movsx edx, byte [esp + 0x22]
add esp, 4
cmp eax, edx
jne 0x44ee6d
mov eax, dword [esp + 0x2e8]
mov ecx, 1
inc eax
mov dword [esp + 0x20], ecx
cmp byte [eax], 0
je 0x44ee48
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 0x44ee44
mov edx, dword [esp + 0x20]
mov al, byte [edi + 1]
inc edx
inc edi
test al, al
mov dword [esp + 0x20], edx
jne 0x44ee0f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2e8]
cmp byte [ecx + edx], 0
jne 0x44ee6d
mov dword [esp + 0x34], esi
add esi, ecx
mov al, byte [esi]
cmp al, 9
je 0x44ee65
cmp al, 0x20
jne 0x44ee68
inc esi
jmp 0x44ee5b
cmp byte [esi], 0x3d
je 0x44ee91
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 0x44ed96
jmp 0x44f100
mov al, byte [esp + 0x1f]
test al, al
je 0x44ef65
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 0x44ef0c
lea edi, [esp + 0x3c]
mov eax, dword [edi]
test eax, eax
je 0x44ef56
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 0x44eedc
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 0x44ef49
mov ecx, dword [esp + 0x28]
mov eax, ebx
sub eax, edi
add eax, ecx
test eax, eax
jbe 0x44ef49
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 0x44f525
cmp esi, 0xffffffff
jne 0x44ef08
mov eax, dword [esp + 0x18]
push eax
jmp 0x44f525
inc esi
mov dword [esp + 0x20], esi
mov al, byte [esi]
cmp al, 9
je 0x44ef74
cmp al, 0x20
jne 0x44ef77
inc esi
jmp 0x44ef6a
mov al, byte [esi]
mov edi, esi
cmp al, 0xd
mov dword [esp + 0x14], edi
je 0x44ef97
cmp al, 0xa
je 0x44ef93
test al, al
je 0x44ef93
mov al, byte [edi + 1]
inc edi
cmp al, 0xd
jne 0x44ef83
mov dword [esp + 0x14], edi
dec edi
cmp edi, esi
jb 0x44efb4
mov ebx, dword [sym.imp.MSVCRT.dll_isspace]
movsx eax, byte [edi]
push eax
call ebx
add esp, 4
test eax, eax
je 0x44f013
dec edi
cmp edi, esi
jae 0x44efa2
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 0x44f065
lea edi, [esp + 0x3c]
mov eax, dword [edi]
test eax, eax
je 0x44f056
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 0x44efe5
jmp 0x44f065
cmp edi, esi
jb 0x44efb4
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 0x44efb4
add edi, ebx
mov al, byte [edi + ebp + 1]
test al, al
jne 0x44efb4
mov eax, dword [esp + 0x18]
push eax
jmp 0x44f525
cmp esi, 0xffffffff
jne 0x44f065
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x44f525
mov edx, dword [esp + 0x20]
push 0
cmp byte [edx], 0x20
jne 0x44f089
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 0x44f0b2
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 0x470090
push esi
call edi
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x44f0d5
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 0x44f525
mov edi, dword [esp + 0x14]
mov al, byte [esp + 0x1f]
test al, al
je 0x44f10e
push ebx
jmp 0x44f525
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 0x44f3bc
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 0x44f3bc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x44f17c
push str._r_n_r_n
push edi
call esi
add esp, 8
test eax, eax
je 0x44f17c
push str._r_n_r_n
push edi
call esi
add esp, 8
cmp eax, ebx
jae 0x44f17c
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 0x44f1e0
mov al, byte [esi]
cmp al, 0xa
je 0x44f1a9
movsx ecx, al
push ecx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x44f1a9
dec esi
cmp esi, ebp
jb 0x44f1e0
jmp 0x44f18b
cmp esi, ebp
jb 0x44f1e0
movsx edx, byte [esi]
push edx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
jne 0x44f1e0
inc ebx
push 0x5b
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x44f3bc
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
jmp 0x44f136
mov eax, ebx
sub eax, ebp
cmp eax, 0x53
jle 0x44f214
mov al, byte [ebx - 0x53]
lea edi, [ebx - 0x53]
cmp al, 0x23
jne 0x44f214
cmp byte [ebx - 2], 0xd
jne 0x44f214
cmp byte [ebx - 1], 0xa
jne 0x44f214
push 0xd
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [ebx - 4]
add esp, 8
cmp eax, ecx
jne 0x44f214
mov ebx, edi
add ebp, 4
cmp esi, ebp
jbe 0x44f23d
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 0x44f23d
sub ebx, 2
sub edi, 2
cmp esi, ebp
ja 0x44f21e
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 0x44f2a1
lea esi, [esp + 0x3c]
mov eax, dword [esi]
test eax, eax
je 0x44f2f9
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 0x44f26a
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.0044a7e0
push eax
call fcn.0044a8e0
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 0x44f308
lea edx, [esp + 0x60]
mov edi, str._t_t
jmp 0x44f31b
cmp ebp, 0xffffffff
jne 0x44f2a1
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x44f525
cmp ecx, 0x10
lea edx, [esp + 0x60]
mov edi, 0x471e3c
jl 0x44f31b
mov edi, 0x471e38
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 0x44f384
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 0x4701bc
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 0x44f525
mov edx, dword [esp + 0x2e8]
push 0x7c
lea eax, [esp + 0x64]
push edx
push eax
call fcn.0044a7e0
push eax
call fcn.0044a8e0
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 0x44f3fc
lea edx, [esp + 0x60]
mov edi, str._t_t
jmp 0x44f40f
cmp ecx, 0x10
lea edx, [esp + 0x60]
mov edi, 0x471e3c
jl 0x44f40f
mov edi, 0x471e38
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 0x44f48e
lea edi, [esp + 0x3c]
mov eax, dword [edi]
test eax, eax
je 0x44f53e
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 0x44f45e
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 0x44f4c9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
cmp byte [edx + ecx - 1], 0xa
je 0x44f4c9
lea eax, [esp + 0x10]
push 0
push eax
push 2
push 0x4701bc
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 0x44f508
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 0x4701bc
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 0x44f48e
mov eax, dword [esp + 0x18]
push eax
jmp 0x44f525