Function at 0x4a5a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce22e
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x50f880]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x10]
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], edx
call fcn.004a5750
mov ebx, dword [esi]
push ebx
mov edi, str.history
call fcn.0043b860
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4a5b22
lea esi, [ebx + 0x30]
push 1
mov ebx, edi
call fcn.0043b9e0
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
xor edx, edx
mov dword [esp + 0x1c], eax
cmp dword [ecx + 0x18], edx
je 0x4a5b0f
mov esi, dword [ecx + 0x1c]
mov dword [eax + 0x28], esi
mov esi, dword [ecx + 0x1c]
mov dword [esi + 0x2c], eax
jmp 0x4a5b15
mov dword [eax + 0x28], edx
mov dword [ecx + 0x18], eax
mov esi, dword [esp + 0x18]
mov dword [ecx + 0x1c], eax
mov dword [eax + 0x10], ecx
mov dword [eax + 0x2c], edx
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
xor ebx, ebx
xor eax, eax
mov word [esp + 0x38], ax
mov eax, ecx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4a5b42
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00417a80
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0xf4], ebx
call fcn.004a5570
mov edi, eax
mov dword [esp + 0xf0], 0xffffffff
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x30], edi
jb 0x4a5b92
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00453bd6
add esp, 4
xor edx, edx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], dx
cmp edi, ebx
jne 0x4a5c32
mov esi, dword [esi]
push 1
add esi, 0x30
mov ebx, str.user
call fcn.0043b9e0
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx]
mov ebx, eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
push eax
lea esi, [esi + 0x30]
mov edi, 0x4e972c
mov dword [esp + 0x34], ebx
call fcn.0043ba90
xor ecx, ecx
cmp dword [ebx + 0x20], ecx
je 0x4a5bf3
mov edx, dword [ebx + 0x24]
mov dword [eax + 0x14], edx
mov edx, dword [ebx + 0x24]
mov dword [edx + 0x18], eax
jmp 0x4a5bf9
mov dword [eax + 0x14], ecx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], ecx
je 0x4a5c19
mov edx, dword [eax + 0x1c]
mov dword [ebx + 0x28], edx
mov edx, dword [eax + 0x1c]
mov dword [edx + 0x2c], ebx
jmp 0x4a5c1f
mov dword [ebx + 0x28], ecx
mov dword [eax + 0x18], ebx
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
mov dword [eax + 0x1c], ebx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x2c], ecx
xor ebx, ebx
mov eax, dword [esp + 0x14]
push edi
push eax
mov ecx, esi
call fcn.004a52d0
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
xor edx, edx
mov edi, eax
mov eax, ecx
mov word [esp + 0xc4], dx
lea edx, [eax + 2]
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], ebx
mov dword [esp + 0x14], edx
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4a5c70
sub eax, dword [esp + 0x14]
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0xcc]
call fcn.00417a80
mov dword [esp + 0xf0], 1
cmp edi, ebx
jne 0x4a5d37
mov esi, dword [esi]
push 1
add esi, 0x30
mov ebx, str.drive
call fcn.0043b9e0
cmp dword [esp + 0xd8], 8
mov ecx, dword [esp + 0xc4]
mov ebx, eax
mov dword [esp + 0x14], ebx
jae 0x4a5cd1
lea ecx, [esp + 0xc4]
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
push ecx
lea esi, [esi + 0x30]
mov edi, 0x4e9738
call fcn.0043ba90
xor ecx, ecx
cmp dword [ebx + 0x20], ecx
je 0x4a5cfa
mov edx, dword [ebx + 0x24]
mov dword [eax + 0x14], edx
mov edx, dword [ebx + 0x24]
mov dword [edx + 0x18], eax
jmp 0x4a5d00
mov dword [eax + 0x14], ecx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x18], ecx
je 0x4a5d20
mov edx, dword [eax + 0x1c]
mov dword [ebx + 0x28], edx
mov edx, dword [eax + 0x1c]
mov dword [edx + 0x2c], ebx
jmp 0x4a5d26
mov dword [ebx + 0x28], ecx
mov dword [eax + 0x18], ebx
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov dword [eax + 0x1c], ebx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x2c], ecx
mov esi, dword [esi]
push 1
add esi, 0x30
mov ebx, str.event
call fcn.0043b9e0
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4a5d5e
mov dword [eax + 0x2c], ecx
mov ecx, dword [edi + 0x18]
mov dword [ecx + 0x28], eax
jmp 0x4a5d68
mov dword [eax + 0x2c], 0
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
xor ecx, ecx
mov dword [eax + 0x10], edi
mov dword [eax + 0x28], ecx
xor edx, edx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ecx
mov word [esp + 0x70], dx
mov edi, dword [esp + 0x18]
mov byte [esp + 0xf0], 2
mov esi, dword [edi]
push 1
lea esi, [esi + 0x30]
mov ebx, str.startTime
call fcn.0043b9e0
mov ebx, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x28], edx
call fcn.0043bdd0
add esp, 8
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0xf4], 3
call fcn.00415bc0
mov byte [esp + 0xf0], 2
cmp dword [esp + 0x4c], 8
jb 0x4a5dfc
mov edx, dword [esp + 0x38]
push edx
call fcn.00453bd6
add esp, 4
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
jae 0x4a5e0e
lea eax, [esp + 0x70]
mov esi, dword [edi]
push eax
lea esi, [esi + 0x30]
mov edi, 0x4e9744
call fcn.0043ba90
xor edi, edi
cmp dword [ebx + 0x20], edi
je 0x4a5e33
mov ecx, dword [ebx + 0x24]
mov dword [eax + 0x14], ecx
mov edx, dword [ebx + 0x24]
mov dword [edx + 0x18], eax
jmp 0x4a5e39
mov dword [eax + 0x14], edi
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], edi
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], edi
je 0x4a5e59
mov ecx, dword [eax + 0x1c]
mov dword [ebx + 0x28], ecx
mov edx, dword [eax + 0x1c]
mov dword [edx + 0x2c], ebx
jmp 0x4a5e5f
mov dword [ebx + 0x28], edi
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x2c], edi
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], edi
mov word [esp + 0x54], ax
mov ecx, dword [esp + 0x34]
mov byte [esp + 0xf0], 4
cmp dword [ecx + 0x10], edi
jne 0x4a5f67
mov edi, dword [esp + 0x18]
mov esi, dword [edi]
push 1
lea esi, [esi + 0x30]
mov ebx, str.finishTime
call fcn.0043b9e0
mov ebx, eax
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x28], eax
call fcn.0043bdd0
add esp, 8
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0xf4], 5
call fcn.00415bc0
mov esi, 8
mov byte [esp + 0xf0], 4
cmp dword [esp + 0x4c], esi
jb 0x4a5efd
mov eax, dword [esp + 0x38]
push eax
call fcn.00453bd6
add esp, 4
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x68], esi
jae 0x4a5f0b
lea ecx, [esp + 0x54]
mov esi, dword [edi]
push ecx
lea esi, [esi + 0x30]
mov edi, 0x4e9750
call fcn.0043ba90
xor ecx, ecx
cmp dword [ebx + 0x20], ecx
je 0x4a5f30
mov edx, dword [ebx + 0x24]
mov dword [eax + 0x14], edx
mov edx, dword [ebx + 0x24]
mov dword [edx + 0x18], eax
jmp 0x4a5f36
mov dword [eax + 0x14], ecx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], ecx
je 0x4a5f56
mov edx, dword [eax + 0x1c]
mov dword [ebx + 0x28], edx
mov edx, dword [eax + 0x1c]
mov dword [edx + 0x2c], ebx
jmp 0x4a5f5c
mov dword [ebx + 0x28], ecx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x2c], ecx
xor edi, edi
mov ebx, dword [esp + 0x18]
push 0x4e975c
lea eax, [ebx + 0x24]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0043bbb0
add esp, 0xc
mov ecx, eax
lea esi, [esp + 0x8c]
mov byte [esp + 0xf0], 6
call fcn.0043bca0
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x4a5faf
mov edx, dword [esp + 0x38]
push edx
call fcn.00453bd6
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0xf0], 9
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], esi
jae 0x4a5fd6
lea eax, [esp + 0x8c]
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4a60b0
call fcn.0041a760
cmp eax, edi
je 0x4a60b4
cmp eax, 0xb7
je 0x4a60b4
cmp dword [esp + 0xa0], esi
jb 0x4a6026
mov eax, dword [esp + 0x8c]
push eax
call fcn.00453bd6
add esp, 4
xor ecx, ecx
mov ebx, 7
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], cx
cmp dword [esp + 0x68], esi
jb 0x4a6056
mov edx, dword [esp + 0x54]
push edx
call fcn.00453bd6
add esp, 4
xor eax, eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
mov word [esp + 0x54], ax
cmp dword [esp + 0x84], esi
jb 0x4a607b
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00453bd6
add esp, 4
xor edx, edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], edi
mov word [esp + 0x70], dx
cmp dword [esp + 0xd8], esi
jb 0x4a60a9
mov eax, dword [esp + 0xc4]
push eax
call fcn.00453bd6
add esp, 4
xor al, al
jmp 0x4a620c
mov dword [esp + 0x28], eax
xor ecx, ecx
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], cx
push edi
lea edx, [esp + 0xac]
mov byte [esp + 0xf4], 0xa
mov eax, dword [ebx]
push edx
lea edi, [esp + 0x1c]
call fcn.0043c1a0
mov eax, dword [esp + 0xb0]
add esp, 8
cmp dword [esp + 0xbc], esi
jae 0x4a6106
lea eax, [esp + 0xa8]
mov edx, dword [esp + 0xb8]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [edx + edx]
mov edx, dword [esp + 0x30]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4a612e
call fcn.0041a760
cmp dword [esp + 0xbc], esi
jb 0x4a6147
mov eax, dword [esp + 0xa8]
push eax
call fcn.00453bd6
add esp, 4
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov edi, 7
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], cx
cmp eax, ebx
je 0x4a6173
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xa0], esi
jb 0x4a618c
mov edx, dword [esp + 0x8c]
push edx
call fcn.00453bd6
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], ax
cmp dword [esp + 0x68], esi
jb 0x4a61b7
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00453bd6
add esp, 4
xor edx, edx
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], dx
cmp dword [esp + 0x84], esi
jb 0x4a61dc
mov eax, dword [esp + 0x70]
push eax
call fcn.00453bd6
add esp, 4
xor ecx, ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], cx
cmp dword [esp + 0xd8], esi
jb 0x4a620a
mov edx, dword [esp + 0xc4]
push edx
call fcn.00453bd6
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00453be1
mov esp, ebp
pop ebp
ret 0xc