Function at 0x434380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
jne 0x4343a1
test edi, edi
je 0x4343a1
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
push edi
call ecx
jmp 0x4343a3
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
jl 0x43444d
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x43444d
mov eax, dword [esi + 0x58]
test eax, eax
jbe 0x43444d
mov dword [ebp + 0x10], edx
fild dword [ebp + 0x10]
test edx, edx
jge 0x4343dd
fadd qword [0x476690]
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
test eax, eax
jge 0x4343ed
fadd qword [0x476690]
fdivp st(1)
fmul qword [0x476d48]
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 0x475f04
push ecx
call eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43444d
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 0x43444d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp + 0xc], 0x80040088
jne 0x43447b
mov eax, dword [esi + 0x44]
test eax, eax
je 0x43446d
push eax
call fcn.004506ac
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 0x43448a
mov dword [esi + 0xc], 1
movzx eax, byte [esi + 0x20]
cmp eax, 4
ja case.default.0x434497
jmp dword [eax*4 + 0x43498c]
cmp dword [ebp - 4], 0
jne 0x4344b6
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 0x4344cf
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 0x4344f7
test cl, cl
je 0x4344f3
mov cl, byte [eax + 1]
cmp cl, byte [ebx + 1]
jne 0x4344f7
add eax, 2
add ebx, 2
test cl, cl
jne 0x4344d7
xor eax, eax
jmp 0x4344fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43451a
lea ecx, [ebp - 8]
mov byte [esi + 0x20], 5
call fcn.0042f1e0
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.0042ef90
mov eax, dword [edi + eax]
push eax
call fcn.0043a920
add esp, 4
lea ecx, [ebp - 8]
cmp eax, 0x8000
ja 0x43455a
mov byte [esi + 0x20], 1
mov dword [esi + 0x18], eax
call fcn.0042f1e0
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.0042f1e0
pop edi
pop esi
mov eax, 0x80040081
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], 0
je 0x4344a4
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x434596
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.0044fff4
add esp, 4
test eax, eax
je 0x4345ad
mov ecx, eax
call fcn.00435790
jmp 0x4345af
xor eax, eax
mov dword [esi + 0x38], eax
test eax, eax
jne 0x4345c8
pop edi
mov byte [esi + 0x20], 5
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x28]
call fcn.004309d0
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 - 0x28]
call fcn.00439c50
cmp eax, 1
jne 0x4344a4
cmp dword [esi + 0x1c], 0
je 0x434621
mov ecx, dword [esi + 0x38]
lea edx, [ebp + 0xc]
push edx
lea eax, [esi + 0x52]
push eax
mov dword [ebp + 0xc], 0
call fcn.00435400
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 0x4344a4
mov ecx, dword [edi]
mov edx, dword [ecx + 0x1c]
push edi
call edx
mov eax, dword [eax]
push eax
call fcn.0043a920
add esp, 4
cmp eax, 0x4000
ja 0x4344a4
test eax, eax
jbe 0x434677
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 0x434973
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 0
push 0
push eax
call edx
mov dword [ebp + 0xc], eax
jmp 0x434973
cmp dword [ebp - 4], 0
je 0x4344a4
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x40], edi
je 0x434973
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 0x434973
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x40], 0
jmp 0x434973
cmp dword [esi + 0xc], 1
jne 0x4348c7
cmp dword [esi + 0x44], 0
mov dword [ebp + 0xc], 0
jne 0x43479f
mov eax, dword [esi + 0x14]
lea ebx, [esi + 0x48]
push eax
mov ecx, ebx
call fcn.0042f2d0
mov ecx, ebx
call fcn.0042ef90
test eax, eax
je 0x434739
mov ecx, ebx
call fcn.0042ef90
dec eax
push eax
mov ecx, ebx
call fcn.0040104b
cmp al, 0x5c
je 0x434739
push 0x5c
mov ecx, ebx
call fcn.0042f670
push str.xtmpx.xtr
mov ecx, ebx
call fcn.0042f630
cmp byte [ebx + 7], 0xff
mov eax, ebx
jne 0x43474f
mov eax, dword [ebx]
push 0x476894
push eax
call fcn.00450908
add esp, 8
mov dword [esi + 0x44], eax
test eax, eax
jne 0x434795
cmp byte [ebx + 7], 0xff
jne 0x43476c
mov ebx, dword [ebx]
push ebx
push str.Cant_open__s_n
call fcn.0045509a
add eax, 0x40
push eax
call fcn.00450728
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 0x434973
xor ebx, ebx
cmp edi, ebx
je 0x4347db
mov ecx, dword [edi]
mov edx, dword [ecx + 0x1c]
push edi
call edx
mov ecx, dword [edi]
mov edx, dword [ecx + 0x18]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x44]
push eax
push edi
call edx
push eax
mov eax, dword [ebp + 0x10]
push 1
push eax
call fcn.00454139
mov ecx, dword [edi]
mov edx, dword [ecx + 0x18]
add esp, 0x10
push edi
mov dword [ebp + 0x10], eax
call edx
cmp dword [ebp + 0x10], eax
jne 0x434783
mov eax, dword [esi + 0x44]
push eax
call fcn.004506ac
push 0x42
lea ecx, [ebp - 0x6c]
push ebx
push ecx
mov dword [esi + 0x44], ebx
call fcn.0044f280
push 6
mov byte [ebp - 0x67], 9
mov byte [ebp - 0x68], 1
call fcn.0044fff4
mov dword [ebp - 0x52], eax
mov dword [eax], 0x47658c
mov edx, dword [ebp - 0x52]
mov byte [edx + 5], 0
mov eax, dword [ebp - 0x52]
mov byte [eax + 5], 0
mov ecx, dword [ebp - 0x52]
mov byte [ecx + 4], 1
mov eax, dword [esi + 0x14]
mov dl, byte [esi + 0x5c]
mov dword [ebp - 0x46], eax
lea eax, [esi + 0x48]
add esp, 0x14
cmp byte [eax + 7], 0xff
mov dword [ebp - 0x42], 1
mov byte [ebp - 0x66], dl
mov byte [ebp - 0x65], 1
mov byte [ebp - 0x61], 0
mov byte [ebp - 0x62], 0
mov dword [ebp - 0x56], ebx
mov dword [ebp - 0x5e], ebx
mov byte [ebp - 0x63], 1
mov byte [ebp - 0x64], 0
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5f], 0
mov dword [ebp - 0x4e], ebx
mov dword [ebp - 0x2e], ebx
mov dword [ebp - 0x5a], ebx
je 0x43486f
mov dword [ebp - 0x4a], eax
jmp 0x434874
mov ecx, dword [eax]
mov dword [ebp - 0x4a], ecx
lea edx, [ebp - 0x6c]
push edx
mov dword [ebp - 0x3e], fcn.00431490
mov dword [ebp - 0x3a], 0x433e40
mov dword [ebp - 0x36], fcn.00431490
mov dword [ebp - 0x32], 0x433f20
call fcn.0043f850
mov edi, eax
mov eax, dword [ebp - 0x52]
push eax
call fcn.0044ea4d
add esp, 8
cmp edi, ebx
jne 0x43446d
cmp byte [esi + 0x20], 5
jne 0x434973
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x44], 0
jne 0x434932
mov ecx, dword [esi + 0x14]
lea ebx, [esi + 0x48]
push ecx
mov ecx, ebx
call fcn.0042f2d0
mov ecx, ebx
call fcn.0042ef90
test eax, eax
je 0x434903
mov ecx, ebx
call fcn.0042ef90
dec eax
push eax
mov ecx, ebx
call fcn.0040104b
cmp al, 0x5c
je 0x434903
push 0x5c
mov ecx, ebx
call fcn.0042f670
push str.xtmpx.xtr
mov ecx, ebx
call fcn.0042f630
cmp byte [ebx + 7], 0xff
mov eax, ebx
jne 0x434919
mov eax, dword [ebx]
push 0x476894
push eax
call fcn.00450908
add esp, 8
mov dword [esi + 0x44], eax
test eax, eax
je 0x434764
cmp dword [ebp + 0xc], 0x80004005
je 0x434973
test edi, edi
je 0x434973
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push edi
call eax
mov ecx, dword [esi + 0x44]
mov edx, dword [edi]
push ecx
mov ebx, eax
mov eax, dword [edx + 0x18]
push edi
call eax
push eax
push 1
push ebx
call fcn.00454139
mov ecx, dword [edi]
mov edx, dword [ecx + 0x18]
add esp, 0x10
push edi
mov ebx, eax
call edx
cmp ebx, eax
jne 0x434783
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