Function at 0x45ccb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x1e8
push ebx
push esi
mov esi, dword [esp + 0x1f4]
push edi
test esi, esi
mov dword [esp + 0x34], ecx
jne 0x45ccd6
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1e8
ret 4
movsx ax, byte [esi + 0xec]
push esi
push eax
call fcn.004782e0
add esp, 8
lea ecx, [esp + 0x38]
mov ebx, eax
push 0
push 0
push ecx
mov ecx, dword [0x826818]
push esi
call fcn.00448890
mov al, byte [esi + 0xec]
mov edi, dword [fcn.0065f208]
test al, al
jne 0x45cd20
push 2
push 0x6a0028
push esi
call edi
add esp, 0xc
test eax, eax
je 0x45cd42
cmp byte [esi + 0xec], 1
jne 0x45ce39
push 3
push 0x6a0024
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x45cdd4
fld dword [esp + 0x40]
fcomp dword [0x65f998]
fnstsw ax
test ah, 0x41
je 0x45cd5b
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], edx
fld dword [esp + 0x4c]
fcomp dword [0x65f998]
fnstsw ax
test ah, 0x41
je 0x45cd74
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
fld dword [esp + 0x44]
fcomp dword [0x65f998]
fnstsw ax
test ah, 0x41
je 0x45cd8d
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
fld dword [esp + 0x48]
fcomp dword [0x65f998]
fnstsw ax
test ah, 0x41
je 0x45cda6
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], edx
fld dword [esp + 0x44]
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 0x41
je 0x45cdbd
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
fld dword [esp + 0x48]
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 1
jne 0x45cdd4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x48], ecx
cmp byte [esi + 0xec], 1
jne 0x45ce39
push 3
push 0x6a0020
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x45ce39
fld dword [esp + 0x40]
fcomp dword [0x65f998]
fnstsw ax
test ah, 0x41
je 0x45ce07
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x40], edx
fld dword [esp + 0x44]
fcomp dword [0x65f998]
fnstsw ax
test ah, 0x41
je 0x45ce20
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
fld dword [esp + 0x48]
fcomp dword [0x65f998]
fnstsw ax
test ah, 0x41
je 0x45ce39
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x45ce80
fld dword [esp + 0x40]
fcomp dword [0x65f998]
fnstsw ax
test ah, 1
jne 0x45d15a
fld dword [esp + 0x44]
fcomp dword [0x65f998]
fnstsw ax
test ah, 1
jne 0x45d15a
fld dword [esp + 0x48]
fcomp dword [0x65f998]
fnstsw ax
test ah, 1
jne 0x45d15a
fld dword [esp + 0x4c]
fcomp dword [0x65f998]
fnstsw ax
test ah, 1
jne 0x45d15a
push esi
call fcn.00473df0
add esp, 4
test eax, eax
jne 0x45cee9
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x45cee9
fld dword [esp + 0x40]
fcomp dword [0x65f998]
fnstsw ax
test ah, 1
jne 0x45d15a
fld dword [esp + 0x44]
fcomp dword [0x65f998]
fnstsw ax
test ah, 1
jne 0x45d15a
fld dword [esp + 0x48]
fcomp dword [0x65f998]
fnstsw ax
test ah, 1
jne 0x45d15a
push esi
call fcn.00472c00
add esp, 4
cmp ax, 3
mov ecx, 0x64
jne 0x45cf11
cmp bx, 5
je 0x45cf11
cmp bx, 0x10
mov dword [esp + 0xc], 0x3e8
jne 0x45cf15
mov dword [esp + 0xc], ecx
mov eax, dword [0x6a2d04]
cmp bx, 6
je 0x45cf26
cmp bx, 0x11
jne 0x45cf31
cmp eax, 0x131a35f
jge 0x45cf31
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
push ebp
mov dword [esp + 0x18], eax
fld st(0)
fmul dword [esp + 0x44]
fadd qword [0x65f9a0]
call fcn.00645030
fld st(0)
fmul dword [esp + 0x48]
mov edi, eax
mov dword [esp + 0x1c], edi
fadd qword [0x65f9a0]
call fcn.00645030
fld st(0)
fmul dword [esp + 0x4c]
mov ebp, eax
mov dword [esp + 0x20], ebp
fadd qword [0x65f9a0]
call fcn.00645030
fmul dword [esp + 0x50]
mov ebx, eax
mov dword [esp + 0x24], ebx
fadd qword [0x65f9a0]
call fcn.00645030
test eax, eax
mov dword [esp + 0x28], eax
je 0x45cfae
test edi, edi
jne 0x45cf9e
mov dword [esp + 0x1c], eax
test ebp, ebp
jne 0x45cfa6
mov dword [esp + 0x20], eax
test ebx, ebx
jne 0x45cfae
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x64]
push esi
mov dword [esp + 0x30], edx
call fcn.00473df0
add esp, 4
test eax, eax
pop ebp
je 0x45cfe8
mov eax, dword [esp + 0x58]
mov cx, word [esp + 0x88]
mov dx, word [esp + 0xb0]
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], cx
mov word [esp + 0x32], dx
jmp 0x45d042
movsx ax, byte [esi + 0xec]
push esi
push eax
call fcn.00474010
add esp, 8
test ax, ax
je 0x45d032
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
fild qword [esp + 0xc]
shr edx, 6
and edx, 0x7f
fmul dword [esi + 0xc]
mov dword [esp + 0xc], edx
fiadd dword [esp + 0xc]
call fcn.00645030
jmp 0x45d036
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xd0]
push esi
rep stosd dword es:[edi], eax
movsx ecx, byte [esi + 0xec]
push ecx
call fcn.00476a10
movsx edx, byte [esi + 0xec]
add esp, 4
push eax
push edx
call fcn.00476a10
add esp, 4
push eax
push 0x73aab0
lea eax, [esp + 0x100]
push 0x6a000c
push eax
call dword [fcn.0065f1cc]
mov edi, dword [fcn.0065f1e8]
push 0x40
lea ecx, [esp + 0x10c]
push 0x6a0008
push ecx
call edi
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x45d0f2
push 0x40
lea edx, [esp + 0xf4]
push 0x69a9ec
push edx
call edi
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45d0f2
push eax
push eax
mov eax, dword [esp + 0x3c]
push 0x31
push 0x69ffc0
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00471ac0
add esp, 0x14
dec eax
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x1e8
ret 4
push esi
call fcn.00476080
mov edi, dword [fcn.0065f1d4]
add esp, 4
cmp eax, 0x20
jb 0x45d123
push 2
push 0xffffffffffffffe0
push esi
call edi
push esi
push 1
lea edx, [esp + 0xe4]
push 0x20
push edx
call dword [fcn.0065f1bc]
add esp, 0x1c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xd0]
cmp eax, ecx
push 2
jne 0x45d138
push 0xffffffffffffffe0
jmp 0x45d13a
push 0
push esi
call edi
add esp, 0xc
lea ecx, [esp + 0x14]
push esi
push 1
push 0x20
push ecx
call dword [fcn.0065f1b4]
push esi
call dword [fcn.0065f1c0]
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1e8
ret 4