Function at 0x452d08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe40
call fcn.00452b3c
test eax, eax
jne 0x452d3b
push 0x757885
push dword [0x6e716c]
call fcn.0046279c
add esp, 8
xor eax, eax
jmp 0x4532e3
mov edx, dword [0x6f6920]
test edx, edx
je 0x452d4c
xor eax, eax
jmp 0x4532e3
mov edx, dword [ebp + 8]
test edx, edx
je 0x452d60
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x134]
test eax, eax
jne 0x452d67
xor eax, eax
jmp 0x4532e3
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x130]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x452d81
xor eax, eax
jmp 0x4532e3
mov edx, dword [ebp + 8]
mov cl, byte [edx + 0x120]
test cl, cl
je 0x453264
mov eax, dword [0x6e75f0]
test eax, eax
jne 0x452da2
xor eax, eax
jmp 0x4532e3
mov edx, dword [ebp + 8]
push dword [edx + 0x12c]
lea ecx, [ebp - 0x105c]
push ecx
call fcn.0066c9ec
add esp, 8
lea eax, [ebp - 0x105c]
push eax
call fcn.00451424
pop ecx
lea edx, [ebp - 0x105c]
push edx
push dword [ebp + 0xc]
push 0x75789d
lea ecx, [ebp - 0x85c]
push ecx
call fcn.00670e94
add esp, 0x10
push 0x2e
lea eax, [ebp - 0x85c]
push eax
call fcn.0066cb35
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x452e07
xor eax, eax
jmp 0x4532e3
inc dword [ebp - 0x1c]
push 0x7578a3
push dword [ebp - 0x1c]
call fcn.0066c9ec
add esp, 8
push 0
lea edx, [ebp - 0x85c]
push edx
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x452e69
lea ecx, [ebp - 0x85c]
push ecx
push 0x59f7
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 0x9f2fb4
push 0
call fcn.00462810
add esp, 8
test eax, eax
jne 0x452e69
xor eax, eax
jmp 0x4532e3
mov dword [ebp - 8], 0x20
push 0xc
push 0
lea edx, [ebp - 0x1068]
push edx
call fcn.0066c86c
add esp, 0xc
mov dword [ebp - 0x1068], 0xc
xor ecx, ecx
mov dword [ebp - 0x1064], ecx
xor eax, eax
mov dword [ebp - 0x1060], eax
push 0
push dword [ebp - 8]
push 2
lea edx, [ebp - 0x1068]
push edx
push 0
push 0x40000000
lea ecx, [ebp - 0x85c]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x453247
lea edx, [ebp - 0x85c]
push edx
call fcn.00441278
pop ecx
push 0x148
push 0
lea ecx, [ebp - 0x11b0]
push ecx
call fcn.0066c86c
add esp, 0xc
mov dword [ebp - 0x11b0], 0x100
mov dword [ebp - 0x11ac], 1
mov dword [ebp - 0x11a8], 0x148
mov dword [ebp - 0x11a4], 0xac44
xor eax, eax
mov dword [ebp - 0x11a0], eax
xor edx, edx
mov dword [ebp - 0x119c], edx
mov ecx, dword [0x76784c]
mov dword [ebp - 0x1190], ecx
mov eax, dword [0x767850]
test eax, eax
jne 0x452f4b
mov edx, dword [0x767848]
mov dword [ebp - 0x1198], edx
jmp 0x452f66
mov ecx, dword [0x767850]
cmp ecx, 3
jne 0x452f66
imul eax, dword [0x767848], 0x3e8
mov dword [ebp - 0x1164], eax
mov dword [ebp - 0x118c], 1
xor edx, edx
mov dword [ebp - 0x1188], edx
xor ecx, ecx
mov dword [ebp - 0x1184], ecx
xor eax, eax
mov dword [ebp - 0x117c], eax
xor edx, edx
mov dword [ebp - 0x1178], edx
xor ecx, ecx
mov dword [ebp - 0x1180], ecx
xor eax, eax
mov dword [ebp - 0x1174], eax
test byte [0x767850], 1
je 0x452fb3
mov dword [ebp - 0x1170], 1
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x11b0]
push edx
call dword [0x8f2efc]
add esp, 0x10
test eax, eax
je 0x452fe2
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4532e3
push dword [ebp - 0x2c]
call fcn.0066bbd0
pop ecx
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x28]
add edx, edx
push edx
call fcn.0066bbd0
pop ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x848c24
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
cmp eax, 4
jne 0x45301c
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x230]
mov dword [ebp - 0x4c], eax
jmp 0x453044
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
cdq
push edx
push eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0xc]
dec eax
cdq
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx + 0x230]
adc edx, dword [ecx + 0x234]
call fcn.0067457f
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0x1a
imul edx, dword [ebp - 0x50], 0x930
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x28]
add ecx, ecx
mov dword [ebp - 0x58], ecx
xor eax, eax
mov dword [ebp - 0x5c], eax
xor edx, edx
mov dword [ebp - 0x40], edx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
jmp 0x4531eb
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x58]
cmp eax, edx
jl 0x4530a3
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
add ecx, eax
push ecx
push dword [ebp - 0x38]
call fcn.0066c7fc
add esp, 0xc
mov edx, dword [ebp - 0x58]
add dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x58]
sub dword [ebp - 0x40], ecx
jmp 0x4531ae
mov eax, dword [ebp - 0x4c]
test eax, eax
jle 0x4531f9
mov edx, dword [ebp - 0x40]
test edx, edx
jle 0x4530cc
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
add ecx, eax
push ecx
push dword [ebp - 0x38]
call fcn.0066c7fc
add esp, 0xc
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x40]
sub edx, ecx
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
cmp eax, edx
jge 0x4530f1
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
imul eax, dword [ebp - 0x50], 0x930
mov dword [ebp - 0x54], eax
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
push dword [ebp - 0x48]
push dword [ebp - 0x24]
call fcn.0045b7fc
add esp, 0x10
mov eax, dword [ebp - 0x54]
cdq
add dword [0x826584], eax
adc dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x11b8], eax
sub edx, 0x80000000
mov dword [ebp - 0x11b4], edx
fild qword [ebp - 0x11b8]
fadd qword [0x4532e8]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x11c0], eax
sub edx, 0x80000000
mov dword [ebp - 0x11bc], edx
fild qword [ebp - 0x11c0]
fadd qword [0x4532e8]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
mov ecx, dword [ebp - 0x50]
sub dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x50]
add dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x3c]
test edx, edx
jle 0x4531a3
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
add ecx, eax
push ecx
call fcn.0066c7fc
add esp, 0xc
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x3c]
sub edx, ecx
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call dword [0x8f2f00]
add esp, 0x14
test eax, eax
je 0x4531d7
mov dword [0x6f6920], 1
jmp 0x4531f9
push 0
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 0x44]
push dword [ebp - 0x34]
push dword [ebp - 4]
call sub.KERNEL32.DLL_WriteFile
mov ecx, dword [0x6f6920]
test ecx, ecx
je 0x453071
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call dword [0x8f2f04]
add esp, 0xc
push dword [ebp - 0x30]
call dword [0x8f2f08]
pop ecx
push dword [ebp - 0x34]
call fcn.0066b9f8
pop ecx
push dword [ebp - 0x38]
call fcn.0066b9f8
pop ecx
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
test byte [0x767850], 1
je 0x453247
lea edx, [ebp - 0x85c]
push edx
call dword [0x8f2f10]
pop ecx
mov ecx, dword [0x6f6920]
test ecx, ecx
je 0x4532de
lea eax, [ebp - 0x85c]
push eax
call fcn.004522ac
pop ecx
jmp 0x4532de
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0x280]
dec ecx
jne 0x453280
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00451490
add esp, 8
jmp 0x4532e3
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x280]
cmp edx, 2
jne 0x4532a4
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x134]
call fcn.00453d5c
add esp, 8
jmp 0x4532e3
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x280]
cmp edx, 3
jne 0x4532c8
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x134]
call fcn.00453848
add esp, 8
jmp 0x4532e3
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x134]
call fcn.004532f0
add esp, 8
jmp 0x4532e3
mov eax, 1
mov esp, ebp
pop ebp
ret