Function at 0x452828
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
jne 0x4524e1
test edi, edi
je 0x4524e1
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
push edi
call ecx
jmp 0x4524e3
xor eax, eax
mov esi, dword [ebp + 8]
add dword [esi + 0x54], eax
mov edx, dword [esi + 0x54]
mov dword [ebp - 4], eax
test ebx, ebx
js 0x45258d
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x45258d
mov eax, dword [esi + 0x58]
test eax, eax
je 0x45258d
mov dword [ebp + 0x10], edx
fild dword [ebp + 0x10]
test edx, edx
jns 0x45251d
fadd qword [0x4abba8]
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
test eax, eax
jns 0x45252d
fadd qword [0x4abba8]
fdivp st(1)
fmul qword [0x4abdb0]
fnstcw word [ebp + 0x12]
movzx eax, word [ebp + 0x12]
or eax, 0xc00
mov dword [ebp + 8], eax
fldcw word [ebp + 8]
fistp dword [ebp + 8]
mov dx, word [ebp + 8]
movzx ebx, dx
lea edx, [ebp + 0x10]
fldcw word [ebp + 0x12]
push edx
mov dword [ebp + 0x10], 0
mov eax, dword [ecx]
mov eax, dword [eax]
push 0x4aaf4c
push ecx
call eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45258d
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebx
push eax
call edx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45258d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp + 0xc], 0x80040088
jne 0x4525bb
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4525ad
push eax
call fcn.00470ed8
add esp, 4
mov dword [esi + 0x44], 0
pop edi
pop esi
mov eax, 0x80040088
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
cmp dword [esi + 0x18], eax
je 0x4525ca
mov dword [esi + 0xc], 1
movzx eax, byte [esi + 0x20]
cmp eax, 4
ja case.default.0x4525d7
jmp dword [eax*4 + 0x452ab8]
cmp dword [ebp - 4], 0
jne 0x4525f6
pop edi
mov byte [esi + 0x20], 5
pop esi
mov eax, 0x80040081
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
lea eax, [ebp - 8]
push eax
mov ecx, esi
call edx
cmp byte [ebp - 1], 0xff
lea ebx, [ebp - 8]
jne 0x45260f
mov ebx, dword [ebp - 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0x1c]
push edi
call ecx
mov cl, byte [eax]
cmp cl, byte [ebx]
jne 0x452637
test cl, cl
je 0x452633
mov cl, byte [eax + 1]
cmp cl, byte [ebx + 1]
jne 0x452637
add eax, 2
add ebx, 2
test cl, cl
jne 0x452617
xor eax, eax
jmp 0x45263c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45265a
lea ecx, [ebp - 8]
mov byte [esi + 0x20], 5
call fcn.0044e260
pop edi
pop esi
mov eax, 0x80040081
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push edi
call eax
lea ecx, [ebp - 8]
mov edi, eax
call fcn.0044e020
mov eax, dword [edi + eax]
push eax
call fcn.00458ea0
add esp, 4
lea ecx, [ebp - 8]
cmp eax, 0x8000
ja 0x45269a
mov byte [esi + 0x20], 1
mov dword [esi + 0x18], eax
call fcn.0044e260
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [esi + 0x20], 5
call fcn.0044e260
pop edi
pop esi
mov eax, 0x80040081
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], 0
je 0x4525e4
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4526d6
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0xc]
add ecx, 4
push 1
call eax
mov dword [esi + 0x38], 0
push 0x24
call fcn.004702fa
add esp, 4
test eax, eax
je 0x4526ed
mov ecx, eax
call fcn.00454c70
jmp 0x4526ef
xor eax, eax
mov dword [esi + 0x38], eax
test eax, eax
jne 0x452708
pop edi
mov byte [esi + 0x20], 5
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x30]
call fcn.0044fd30
mov ecx, dword [edi]
mov edx, dword [ecx + 0x1c]
mov ebx, dword [esi + 0x38]
push edi
call edx
mov ecx, dword [ebp - 4]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00458190
cmp eax, 1
jne 0x4525e4
cmp dword [esi + 0x1c], 0
je 0x452761
mov ecx, dword [esi + 0x38]
lea edx, [ebp + 0xc]
push edx
lea eax, [esi + 0x52]
push eax
mov dword [ebp + 0xc], 0
call fcn.004548e0
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
pop edi
mov byte [esi + 0x20], 2
mov dword [esi + 0x18], 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], 0
je 0x4525e4
mov ecx, dword [edi]
mov edx, dword [ecx + 0x1c]
push edi
call edx
mov eax, dword [eax]
push eax
call fcn.00458ea0
add esp, 4
cmp eax, 0x4000
ja 0x4525e4
test eax, eax
je 0x4527b7
pop edi
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov byte [esi + 0x20], 3
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x452aa0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 0
push 0
push eax
call edx
mov dword [ebp + 0xc], eax
jmp 0x452aa0
cmp dword [ebp - 4], 0
je 0x4525e4
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x40], edi
je 0x452aa0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ecx
push 0
push eax
call edx
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x40]
test eax, eax
je 0x452aa0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x40], 0
jmp 0x452aa0
cmp dword [esi + 0xc], 1
jne 0x4529ec
cmp dword [esi + 0x44], 0
mov dword [ebp + 0xc], 0
jne 0x4528df
mov eax, dword [esi + 0x14]
lea ebx, [esi + 0x48]
push eax
mov ecx, ebx
call fcn.0044e3b0
mov ecx, ebx
call fcn.0044e020
test eax, eax
je 0x452879
mov ecx, ebx
call fcn.0044e020
dec eax
push eax
mov ecx, ebx
call fcn.00401248
cmp al, 0x5c
je 0x452879
push 0x5c
mov ecx, ebx
call fcn.0044e760
push str.xtmpx.rfx
mov ecx, ebx
call fcn.0044e6e0
cmp byte [ebx + 7], 0xff
mov eax, ebx
jne 0x45288f
mov eax, dword [ebx]
push 0x4abdac
push eax
call fcn.0047136f
add esp, 8
mov dword [esi + 0x44], eax
test eax, eax
jne 0x4528d5
cmp byte [ebx + 7], 0xff
jne 0x4528ac
mov ebx, dword [ebx]
push ebx
push str.Cant_open__s_n
call fcn.00477daa
add eax, 0x40
push eax
call fcn.00472a4f
add esp, 0xc
pop edi
mov byte [esi + 0x20], 5
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x44], 0
je 0x452aa0
xor ebx, ebx
cmp edi, ebx
je 0x452917
mov ecx, dword [edi]
mov edx, dword [ecx + 0x1c]
push edi
call edx
mov ecx, dword [edi]
mov edx, dword [ecx + 0x18]
mov ebx, eax
mov eax, dword [esi + 0x44]
push eax
push edi
call edx
push eax
push 1
push ebx
call fcn.00476af2
mov ebx, eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
add esp, 0x10
push edi
call ecx
cmp ebx, eax
jne 0x4528c3
xor ebx, ebx
mov edx, dword [esi + 0x44]
push edx
call fcn.00470ed8
push 0x14
mov dword [esi + 0x44], ebx
call fcn.004702fa
add esp, 8
cmp eax, ebx
je 0x45293b
push esi
mov ecx, eax
call fcn.00454dc0
jmp 0x45293d
xor eax, eax
mov dword [esi + 0x5c], eax
cmp eax, ebx
je 0x4529d4
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esi + 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0044e280
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x10]
push eax
call edx
mov edi, eax
lea ecx, [ebp - 0x10]
mov dword [ebp + 0xc], edi
call fcn.0044e260
mov eax, dword [esi + 0x5c]
cmp edi, 0x80040088
jne 0x4529a3
cmp eax, ebx
je 0x452995
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x5c], ebx
pop edi
pop esi
mov eax, 0x80040088
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, ebx
je 0x4529c5
mov byte [esi + 0x20], 5
cmp eax, ebx
je 0x4529ba
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x5c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, ebx
je 0x4529d4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x5c], ebx
cmp byte [esi + 0x20], 5
jne 0x452aa0
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x44], 0
jne 0x452a57
mov eax, dword [esi + 0x14]
lea ebx, [esi + 0x48]
push eax
mov ecx, ebx
call fcn.0044e3b0
mov ecx, ebx
call fcn.0044e020
test eax, eax
je 0x452a28
mov ecx, ebx
call fcn.0044e020
dec eax
push eax
mov ecx, ebx
call fcn.00401248
cmp al, 0x5c
je 0x452a28
push 0x5c
mov ecx, ebx
call fcn.0044e760
push str.xtmpx.rfx
mov ecx, ebx
call fcn.0044e6e0
cmp byte [ebx + 7], 0xff
mov eax, ebx
jne 0x452a3e
mov eax, dword [ebx]
push 0x4abdac
push eax
call fcn.0047136f
add esp, 8
mov dword [esi + 0x44], eax
test eax, eax
je 0x4528a4
cmp dword [ebp + 0xc], 0x80004005
je 0x452aa0
test edi, edi
je 0x452aa0
mov ecx, dword [edi]
mov edx, dword [ecx + 0x1c]
push edi
call edx
mov ebx, eax
test ebx, ebx
je 0x4528c3
mov eax, dword [esi + 0x44]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x18]
push eax
push edi
call edx
push eax
push 1
push ebx
call fcn.00476af2
mov ebx, eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
add esp, 0x10
push edi
call ecx
cmp ebx, eax
jne 0x4528c3
mov byte [esi + 0x20], 4
mov dword [esi + 0x18], 0x8000
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc