Function at 0x469720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x467c
call fcn.0049a270
mov eax, dword [0x4f66e0]
mov dword [ebp - 8], eax
push ebx
push esi
mov dword [ebp - 0x4678], ecx
cmp dword [ebp + 0x14], 3
je 0x469759
cmp dword [ebp + 0x14], 2
je 0x469759
cmp dword [ebp + 0x14], 1
je 0x469759
mov eax, 0x10000
jmp 0x469c7c
cmp dword [ebp + 0x14], 3
jne 0x4698a4
mov eax, dword [ebp - 0x4678]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x469827
mov edx, dword [ebp - 0x4678]
cmp dword [edx + 4], 0xffffffff
je 0x469792
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.00468bc0
add esp, 4
mov edx, dword [ebp - 0x4678]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x4697b9
mov eax, 0x10000
jmp 0x469c7c
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x4697da
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.004681a0
add esp, 4
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x4697fd
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
push eax
call fcn.00468210
add esp, 4
jmp 0x4697da
mov ecx, dword [ebp - 0x4678]
mov edx, dword [ecx + 0x23c]
push edx
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.00468550
add esp, 8
mov edx, dword [ebp - 0x4678]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.004687e0
add esp, 0xc
mov dword [ebp - 0x4244], eax
cmp dword [ebp - 0x4244], 0
jle 0x469859
mov eax, 0x600
jmp 0x469c7c
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
push eax
call fcn.00468bc0
add esp, 4
mov ecx, dword [ebp - 0x4678]
mov dword [ecx + 4], 0xffffffff
cmp dword [ebp - 0x4244], 0
jne 0x469887
xor eax, eax
jmp 0x469c7c
cmp dword [ebp - 0x4244], 0xffffff96
jne 0x46989a
mov eax, 0x1000
jmp 0x469c7c
mov eax, 0x5000000
jmp 0x469c7c
mov edx, dword [ebp - 0x4678]
cmp dword [edx + 4], 0xffffffff
je 0x4698c1
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.00468bc0
add esp, 4
mov edx, dword [ebp - 0x4678]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x4698e8
mov eax, 0x10000
jmp 0x469c7c
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x469909
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.004681a0
add esp, 4
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x46992c
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
push eax
call fcn.00468210
add esp, 4
jmp 0x469909
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x4678]
call fcn.00468ef0
mov eax, dword [ebp - 0x2c]
and eax, 0x10
je 0x46997a
cmp dword [ebp + 0x14], 1
jne 0x469957
xor eax, eax
jmp 0x469c7c
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x4678]
add edx, 0x240
push edx
call fcn.00469600
add esp, 8
xor eax, eax
jmp 0x469c7c
cmp dword [ebp + 0x14], 1
jne 0x46998b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x469b4b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4248], ecx
mov edx, dword [ebp - 0x4678]
add edx, 0x240
push edx
lea eax, [ebp - 0x4458]
push eax
call fcn.00498ba4
add esp, 8
mov ecx, dword [ebp - 0x4248]
push ecx
lea edx, [ebp - 0x4458]
push edx
call fcn.00498b7a
add esp, 8
lea eax, [ebp - 0x4458]
mov dword [ebp - 0x424c], eax
mov ecx, dword [ebp - 0x424c]
mov dword [ebp - 0x445c], ecx
mov edx, dword [ebp - 0x445c]
movzx eax, word [edx]
test eax, eax
je 0x469a27
mov ecx, dword [ebp - 0x445c]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0x469a07
mov eax, dword [ebp - 0x445c]
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x469a16
mov edx, dword [ebp - 0x445c]
add edx, 2
mov dword [ebp - 0x424c], edx
mov eax, dword [ebp - 0x445c]
add eax, 2
mov dword [ebp - 0x445c], eax
jmp 0x4699de
mov ecx, dword [ebp - 0x424c]
lea edx, [ebp - 0x4458]
cmp ecx, edx
je 0x469b2a
lea eax, [ebp - 0x4458]
push eax
lea ecx, [ebp - 0x4668]
push ecx
call fcn.00498ba4
add esp, 8
mov edx, dword [ebp - 0x424c]
lea eax, [ebp - 0x4458]
sub edx, eax
sar edx, 1
mov word [ebp + edx*2 - 0x466a], 0
movzx ecx, word [ebp - 0x4668]
test ecx, ecx
je 0x469aa6
movzx edx, word [ebp - 0x4668]
cmp edx, 0x2f
je 0x469aa6
movzx eax, word [ebp - 0x4668]
cmp eax, 0x5c
je 0x469aa6
movzx ecx, word [ebp - 0x4666]
cmp ecx, 0x3a
je 0x469aa6
mov dword [ebp - 0x467c], 0
jmp 0x469ab0
mov dword [ebp - 0x467c], 1
mov dl, byte [ebp - 0x467c]
mov byte [ebp - 0x445d], dl
movzx ebx, byte [ebp - 0x445d]
push 0x4d5858
lea eax, [ebp - 0x4668]
push eax
call fcn.0049a2ad
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
push 0x4d5850
lea ecx, [ebp - 0x4668]
push ecx
call fcn.0049a2ad
add esp, 8
neg eax
sbb eax, eax
neg eax
or esi, eax
or ebx, esi
mov byte [ebp - 0x445d], bl
movzx edx, byte [ebp - 0x445d]
test edx, edx
jne 0x469b2a
lea eax, [ebp - 0x4668]
push eax
mov ecx, dword [ebp - 0x4678]
add ecx, 0x240
push ecx
call fcn.00469600
add esp, 8
push 0
mov edx, dword [ebp - 0x2c]
push edx
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x4458]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x469b5b
mov eax, 0x200
jmp 0x469c7c
mov ecx, dword [ebp - 0x4678]
mov edx, dword [ecx + 0x23c]
push edx
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.00468550
add esp, 8
mov dword [ebp - 0x23c], 0
cmp dword [ebp - 0x23c], 0
jne 0x469c29
push 0x4000
lea edx, [ebp - 0x4240]
push edx
mov eax, dword [ebp - 0x4678]
mov ecx, dword [eax]
push ecx
call fcn.004687e0
add esp, 0xc
mov dword [ebp - 0x466c], eax
cmp dword [ebp - 0x466c], 0xffffff96
jne 0x469bc8
mov dword [ebp - 0x23c], 0x1000
jmp 0x469c29
cmp dword [ebp - 0x466c], 0
jge 0x469bdd
mov dword [ebp - 0x23c], 0x5000000
jmp 0x469c29
cmp dword [ebp - 0x466c], 0
jne 0x469be8
jmp 0x469c29
push 0
lea edx, [ebp - 0x4674]
push edx
mov eax, dword [ebp - 0x466c]
push eax
lea ecx, [ebp - 0x4240]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4670], eax
cmp dword [ebp - 0x4670], 0
jne 0x469c24
mov dword [ebp - 0x23c], 0x400
jmp 0x469c29
jmp 0x469b83
cmp dword [ebp - 0x23c], 0
jne 0x469c48
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x469c58
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4678]
mov eax, dword [edx]
push eax
call fcn.00468bc0
add esp, 4
cmp dword [ebp - 0x23c], 0
je 0x469c7a
mov eax, dword [ebp - 0x23c]
jmp 0x469c7c
xor eax, eax
mov ecx, dword [ebp - 8]
call fcn.00498784
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10