Function at 0x489e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0d17
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xe4]
call fcn.0048a570
mov dword [ebp - 0x10c], 0
mov ecx, dword [ebp + 0x14]
call fcn.0043b610
lea edx, [ebp - 0xe4]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.00489790
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
push 0
call fcn.0041a9c0
add esp, 8
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x110]
push edx
call fcn.0041b080
add esp, 4
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x10c], 0
jne 0x48a308
cmp dword [ebp - 0x108], 0
jne 0x48a308
mov byte [ebp - 0x224], 0
push 0xff
push 0
lea eax, [ebp - 0x223]
push eax
call fcn.00496f40
add esp, 0xc
push 0
push 0
push 0
push 0
push 0x100
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x274]
push edx
mov eax, dword [ebp - 0x110]
push eax
call fcn.0041b050
add esp, 0x20
test eax, eax
je 0x489f81
mov dword [ebp - 0x10c], 0xffffffff
cmp dword [ebp - 0x10c], 0
jne 0x489fd7
mov ecx, dword [ebp + 0x18]
call fcn.004059f0
movzx ecx, al
test ecx, ecx
je 0x489fa5
mov dword [ebp - 0x2b8], 0
jmp 0x489fb3
mov ecx, dword [ebp + 0x18]
call fcn.004059d0
mov dword [ebp - 0x2b8], eax
mov edx, dword [ebp - 0x2b8]
push edx
mov eax, dword [ebp - 0x110]
push eax
call fcn.0041b730
add esp, 8
test eax, eax
je 0x489fd7
mov dword [ebp - 0x10c], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.00485de0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10c], 0
jne 0x48a03c
push 1
mov ecx, dword [ebp - 0x258]
push ecx
push 0
lea ecx, [ebp - 0x124]
call fcn.00485f20
mov edx, dword [ebp - 0x258]
push edx
lea ecx, [ebp - 0x124]
call fcn.004023d0
push eax
mov eax, dword [ebp - 0x110]
push eax
call fcn.0041b750
add esp, 0xc
cmp eax, dword [ebp - 0x258]
jge 0x48a03c
mov dword [ebp - 0x10c], 0xffffffff
lea ecx, [ebp - 0x224]
push ecx
call fcn.00496050
add esp, 4
test eax, eax
ja 0x48a05e
mov dword [ebp - 0x10c], 0xffffffff
jmp 0x48a2f1
lea edx, [ebp - 0x224]
push edx
call fcn.00496050
add esp, 4
movsx eax, byte [ebp + eax - 0x225]
cmp eax, 0x5c
je 0x48a096
lea ecx, [ebp - 0x224]
push ecx
call fcn.00496050
add esp, 4
movsx edx, byte [ebp + eax - 0x225]
cmp edx, 0x2f
jne 0x48a106
lea eax, [ebp - 0x224]
push eax
call fcn.00496050
add esp, 4
mov byte [ebp + eax - 0x225], 0x5c
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405770
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x290]
push ecx
call fcn.0046dd30
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004058b0
lea edx, [ebp - 0x290]
push edx
call fcn.0046e730
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.004058b0
jmp 0x48a296
mov eax, dword [ebp + 0x10]
push eax
call fcn.0046e730
add esp, 4
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00405770
mov byte [ebp - 4], 4
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.0046dd30
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.004058b0
mov dword [ebp - 0x2b0], 0
push 0x5b6e2c
lea ecx, [ebp - 0x64]
call fcn.00405770
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2ac]
call fcn.004059d0
push eax
lea ecx, [ebp - 0x9c]
call fcn.00405770
mov byte [ebp - 4], 8
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.00469030
add esp, 8
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x2bc]
mov dword [ebp - 0x2c0], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2c0]
call fcn.00405ee0
push eax
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0xb8]
push eax
call fcn.00469030
add esp, 8
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x2c4]
mov dword [ebp - 0x2c8], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2c8]
call fcn.00405ee0
push eax
lea edx, [ebp - 0x2b0]
push edx
call fcn.00498802
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb8]
call fcn.00405ea0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x80]
call fcn.00405ea0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x9c]
call fcn.004058b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.004058b0
cmp dword [ebp - 0x2b0], 0
jne 0x48a240
mov dword [ebp - 0x10c], 0xffffffff
cmp dword [ebp - 0x10c], 0
jne 0x48a287
mov eax, dword [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x124]
call fcn.00441110
push eax
push 1
lea ecx, [ebp - 0x124]
call fcn.004465d0
push eax
call fcn.0049991d
add esp, 0x10
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b0]
push ecx
call fcn.0049834c
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2ac]
call fcn.004058b0
cmp dword [ebp - 0x10c], 0
jne 0x48a2bd
cmp dword [ebp - 0x108], 0
jne 0x48a2bd
mov edx, dword [ebp - 0x110]
push edx
call fcn.0041b0d0
add esp, 4
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00405770
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd4]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.0043b510
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.004058b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.00485ea0
jmp 0x489f12
mov edx, dword [ebp - 0x110]
push edx
call fcn.0041b9d0
add esp, 4
mov eax, dword [ebp - 0x110]
push eax
call fcn.0041ac40
add esp, 4
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret