Function at 0x469520
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 0x46a51e
mov ebx, dword [esp + 0x2f0]
cmp byte [ebx], 0
je 0x46a51e
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 0x4695fa
push ebx
call fcn.004674e0
add esp, 4
test al, al
je 0x469609
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x4695f1
mov eax, dword [edi]
test eax, eax
je 0x4695f1
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 0x4695b8
jmp 0x4695fa
cmp esi, 0xffffffff
je 0x46a51e
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 0x469638
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 0x469f10
cmp esi, 0xffffffff
je 0x469644
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 0x4696d7
movsx edx, byte [edi]
mov ebp, dword [sym.imp.MSVCRT.dll_isspace]
push edx
call ebp
add esp, 4
test eax, eax
je 0x4696a0
movsx eax, byte [esi + edi + 1]
inc esi
push eax
call ebp
add esp, 4
test eax, eax
jne 0x46968c
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 0x4696d7
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 0x4696d3
dec esi
test esi, esi
jg 0x4696bf
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 0x46980b
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, ebx
cmp eax, ecx
jge 0x46980b
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 0x4697dd
lea esi, [ebp - 1]
cmp esi, ebx
jb 0x469770
mov al, byte [esi]
cmp al, 0xa
je 0x46975b
movsx eax, al
push eax
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x46975b
dec esi
cmp esi, ebx
jae 0x46973d
jmp 0x469770
cmp esi, ebx
jb 0x469770
movsx ecx, byte [esi]
push ecx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x4697dd
mov edx, dword [esp + 0x2e4]
mov esi, 1
mov al, byte [edx + 1]
test al, al
je 0x4697c9
jmp 0x46978b
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 0x4697c3
mov eax, dword [esp + 0x2e4]
inc esi
cmp byte [esi + eax], 0
jne 0x469785
mov edi, dword [sym.imp.MSVCRT.dll_toupper]
mov ecx, dword [esp + 0x2e4]
cmp byte [esi + ecx], 0
jne 0x4697dd
cmp byte [esi + ebp + 1], 0x5d
je 0x4697f9
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 0x469704
jmp 0x46980b
sub esi, ebx
lea esi, [esi + ebp + 2]
test esi, esi
mov dword [esp + 0x38], esi
jne 0x469a2e
mov al, byte [esp + 0x27]
test al, al
jne 0x46a0da
mov al, byte [esp + 0x1f]
test al, al
jne 0x46a0da
mov eax, dword [esp + 0x2e4]
push 0x80
lea ecx, [esp + 0x64]
push eax
push ecx
call fcn.004625f0
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, 0x4d3594
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 0x46991f
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea esi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x469916
mov eax, dword [esi]
test eax, eax
je 0x469916
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 0x4698d6
jmp 0x46991f
cmp ebp, 0xffffffff
je 0x469f17
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.004625f0
push eax
call fcn.00462680
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 0x469996
lea edx, [esp + 0x60]
mov edi, str._t_t
jmp 0x4699a9
cmp ecx, 0x10
lea edx, [esp + 0x60]
mov edi, 0x4d357c
jl 0x4699a9
mov edi, 0x4d3578
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 0x469a0c
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 0x4d356c
push ebp
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push eax
jmp 0x46a515
mov al, byte [esp + 0x27]
test al, al
je 0x469d2d
add esi, ebx
push 0x5b
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x469c24
mov edi, dword [sym.imp.MSVCRT.dll_isspace]
mov eax, dword [esp + 0x28]
mov ecx, ebp
sub ecx, ebx
cmp ecx, eax
jge 0x469c24
lea esi, [ebp - 1]
cmp esi, ebx
jb 0x469ab3
mov al, byte [esi]
cmp al, 0xa
je 0x469a89
movsx edx, al
push edx
call edi
add esp, 4
test eax, eax
je 0x469a89
dec esi
cmp esi, ebx
jb 0x469ab3
jmp 0x469a6f
cmp esi, ebx
jb 0x469ab3
movsx eax, byte [esi]
push eax
call edi
add esp, 4
test eax, eax
jne 0x469ab3
inc ebp
push 0x5b
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x469c24
jmp 0x469a58
mov eax, dword [esp + 0x14]
cmp eax, 0x53
jle 0x469b27
mov ecx, eax
cmp byte [ecx + ebx - 0x53], 0x23
jne 0x469b27
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 0x469b27
sub esi, 0x53
cmp esi, 1
mov dword [esp + 0x14], esi
jle 0x469b27
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 0x469b27
movsx ecx, byte [esi + ebx - 2]
push ecx
call edi
add esp, 4
test eax, eax
je 0x469b27
sub esi, 2
mov dword [esp + 0x14], esi
mov edx, ebp
sub edx, ebx
cmp edx, 0x53
jle 0x469b73
mov al, byte [ebp - 0x53]
lea esi, [ebp - 0x53]
cmp al, 0x23
jne 0x469b73
cmp byte [ebp - 2], 0xd
jne 0x469b73
cmp byte [ebp - 1], 0xa
jne 0x469b73
push 0xd
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [ebp - 4]
add esp, 8
cmp eax, ecx
jne 0x469b73
mov ebp, esi
mov edx, ebp
sub edx, ebx
cmp edx, 2
jle 0x469b73
cmp byte [ebp - 2], 0xd
jne 0x469b73
cmp byte [ebp - 1], 0xa
jne 0x469b73
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 0x469beb
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x469be2
mov eax, dword [edi]
test eax, eax
je 0x469be2
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 0x469b9e
jmp 0x469beb
cmp esi, 0xffffffff
je 0x469f17
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 0x46a515
mov eax, dword [esp + 0x14]
cmp eax, 0x53
jle 0x469c96
cmp byte [eax + ebx - 0x53], 0x23
jne 0x469c96
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 0x469c96
sub esi, 0x53
cmp esi, 1
mov dword [esp + 0x14], esi
jle 0x469c96
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 0x469c96
movsx eax, byte [esi + ebx - 2]
push eax
call edi
add esp, 4
test eax, eax
je 0x469c96
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 0x469d0c
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x469d03
mov eax, dword [edi]
test eax, eax
je 0x469d03
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 0x469cc3
jmp 0x469d0c
cmp esi, 0xffffffff
je 0x469f17
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 0x46a515
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 0x46a0d2
mov eax, dword [esp + 0x28]
mov ecx, esi
sub ecx, ebx
cmp ecx, eax
jge 0x46a0d2
movsx edx, byte [esi]
mov edi, dword [sym.imp.MSVCRT.dll_isspace]
push edx
call edi
add esp, 4
test eax, eax
je 0x469d84
movsx eax, byte [esi + 1]
inc esi
push eax
call edi
add esp, 4
test eax, eax
jne 0x469d75
mov al, byte [esi]
cmp al, 0x5b
je 0x46a0ce
movsx ecx, al
push ecx
call dword [sym.imp.MSVCRT.dll_toupper]
movsx edx, byte [esp + 0x22]
add esp, 4
cmp eax, edx
jne 0x469e29
mov eax, dword [esp + 0x2e8]
mov ecx, 1
inc eax
mov dword [esp + 0x20], ecx
cmp byte [eax], 0
je 0x469e04
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 0x469e00
mov edx, dword [esp + 0x20]
mov al, byte [edi + 1]
inc edx
inc edi
test al, al
mov dword [esp + 0x20], edx
jne 0x469dcb
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2e8]
cmp byte [ecx + edx], 0
jne 0x469e29
mov dword [esp + 0x34], esi
add esi, ecx
mov al, byte [esi]
cmp al, 9
je 0x469e21
cmp al, 0x20
jne 0x469e24
inc esi
jmp 0x469e17
cmp byte [esi], 0x3d
je 0x469e4d
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 0x469d52
jmp 0x46a0d2
mov al, byte [esp + 0x1f]
test al, al
je 0x469f2c
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 0x469ed3
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x469f1d
mov eax, dword [edi]
test eax, eax
je 0x469f1d
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 0x469e98
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 0x469f10
mov ecx, dword [esp + 0x28]
mov eax, ebx
sub eax, edi
add eax, ecx
test eax, eax
jbe 0x469f10
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 0x46a515
cmp esi, 0xffffffff
jne 0x469ecf
mov eax, dword [esp + 0x18]
push eax
jmp 0x46a515
inc esi
mov dword [esp + 0x20], esi
mov al, byte [esi]
cmp al, 9
je 0x469f3b
cmp al, 0x20
jne 0x469f3e
inc esi
jmp 0x469f31
mov al, byte [esi]
mov edi, esi
cmp al, 0xd
mov dword [esp + 0x14], edi
je 0x469f5e
cmp al, 0xa
je 0x469f5a
test al, al
je 0x469f5a
mov al, byte [edi + 1]
inc edi
cmp al, 0xd
jne 0x469f4a
mov dword [esp + 0x14], edi
dec edi
cmp edi, esi
jb 0x469f7b
mov ebx, dword [sym.imp.MSVCRT.dll_isspace]
movsx eax, byte [edi]
push eax
call ebx
add esp, 4
test eax, eax
je 0x469fe5
dec edi
cmp edi, esi
jae 0x469f69
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 0x46a037
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x46a028
mov eax, dword [edi]
test eax, eax
je 0x46a028
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 0x469fac
jmp 0x46a037
cmp edi, esi
jb 0x469f7b
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 0x469f7b
add edi, ebx
mov al, byte [edi + ebp + 1]
test al, al
jne 0x469f7b
mov eax, dword [esp + 0x18]
push eax
jmp 0x46a515
cmp esi, 0xffffffff
jne 0x46a037
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x46a515
mov edx, dword [esp + 0x20]
push 0
cmp byte [edx], 0x20
jne 0x46a05b
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 0x46a084
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 0x4d162c
push esi
call edi
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x46a0a7
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 0x46a515
mov edi, dword [esp + 0x14]
mov al, byte [esp + 0x1f]
test al, al
je 0x46a0e0
push ebx
jmp 0x46a515
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 0x46a39d
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 0x46a39d
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46a14e
push str._r_n_r_n
push edi
call esi
add esp, 8
test eax, eax
je 0x46a14e
push str._r_n_r_n
push edi
call esi
add esp, 8
cmp eax, ebx
jae 0x46a14e
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 0x46a1b2
mov al, byte [esi]
cmp al, 0xa
je 0x46a17b
movsx ecx, al
push ecx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
je 0x46a17b
dec esi
cmp esi, ebp
jb 0x46a1b2
jmp 0x46a15d
cmp esi, ebp
jb 0x46a1b2
movsx edx, byte [esi]
push edx
call dword [sym.imp.MSVCRT.dll_isspace]
add esp, 4
test eax, eax
jne 0x46a1b2
inc ebx
push 0x5b
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46a39d
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
jmp 0x46a108
mov eax, ebx
sub eax, ebp
cmp eax, 0x53
jle 0x46a1e6
mov al, byte [ebx - 0x53]
lea edi, [ebx - 0x53]
cmp al, 0x23
jne 0x46a1e6
cmp byte [ebx - 2], 0xd
jne 0x46a1e6
cmp byte [ebx - 1], 0xa
jne 0x46a1e6
push 0xd
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [ebx - 4]
add esp, 8
cmp eax, ecx
jne 0x46a1e6
mov ebx, edi
add ebp, 4
cmp esi, ebp
jbe 0x46a20f
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 0x46a20f
sub ebx, 2
sub edi, 2
cmp esi, ebp
ja 0x46a1f0
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 0x46a282
lea esi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x46a2da
mov eax, dword [esi]
test eax, eax
je 0x46a2da
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 0x46a23c
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.004625f0
push eax
call fcn.00462680
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 0x46a2e9
lea edx, [esp + 0x60]
mov edi, str._t_t
jmp 0x46a2fc
cmp ebp, 0xffffffff
jne 0x46a282
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x46a515
cmp ecx, 0x10
lea edx, [esp + 0x60]
mov edi, 0x4d357c
jl 0x46a2fc
mov edi, 0x4d3578
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 0x46a365
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 0x4d356c
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 0x46a515
mov edx, dword [esp + 0x2e8]
push 0x7c
lea eax, [esp + 0x64]
push edx
push eax
call fcn.004625f0
push eax
call fcn.00462680
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 0x46a3dd
lea edx, [esp + 0x60]
mov edi, str._t_t
jmp 0x46a3f0
cmp ecx, 0x10
lea edx, [esp + 0x60]
mov edi, 0x4d357c
jl 0x46a3f0
mov edi, 0x4d3578
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 0x46a47e
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x2f4]
test eax, eax
jne 0x46a52e
mov eax, dword [edi]
test eax, eax
je 0x46a52e
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 0x46a43f
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 0x46a4b9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
cmp byte [edx + ecx - 1], 0xa
je 0x46a4b9
lea eax, [esp + 0x10]
push 0
push eax
push 2
push 0x4d356c
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 0x46a4f8
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 0x4d356c
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 0x46a47e
mov eax, dword [esp + 0x18]
push eax
jmp 0x46a515