Function at 0x40da5c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [ebp + 0x10], 0xffffffff
jne 0x40d9a4
movsx eax, byte [0x436564]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x18], 0xfffffffe
jne 0x40d9b9
movsx eax, byte [0x436566]
test eax, eax
jne 0x40d9b9
or dword [ebp + 0x18], 0xffffffff
cmp dword [ebp + 0x14], 0xfffffffe
jne 0x40d9cf
movsx eax, byte [0x436565]
cmp eax, 1
jne 0x40d9cf
or dword [ebp + 0x14], 0xffffffff
cmp dword [ebp + 0x1c], 0xfffffffe
jne 0x40d9f2
cmp dword [0x43655c], 0
je 0x40d9ee
push dword [0x43655c]
call fcn.0041f078
pop ecx
test eax, eax
jne 0x40d9f2
and dword [ebp + 0x1c], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
fld qword [ebp + 8]
push ecx
push ecx
fstp qword [esp]
call fcn.00420cd4
add esp, 0x14
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x400
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x43d168], 0
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
je 0x40dab5
cmp dword [ebp + 0x18], 0xffffffff
jne 0x40da4b
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x43d168], 0x29
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x40dab5
movsx eax, byte [0x436566]
cmp eax, 2
jle 0x40dab5
push dword [0x436560]
call fcn.0041ea20
pop ecx
mov dword [ebp - 0x18], eax
jmp 0x40da76
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], 0
je 0x40da98
cmp dword [ebp - 0x18], 0
je 0x40da98
mov eax, dword [0x436560]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov al, byte [eax - 1]
mov byte [ecx + 0x43d168], al
jmp 0x40da68
movsx eax, byte [0x436566]
cmp eax, 4
jne 0x40dab5
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x43d168], 0x20
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call fcn.0041ea20
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jle 0x40db80
jmp 0x40dad6
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x40db11
cmp dword [ebp - 4], 0
jge 0x40dae8
and dword [ebp - 0x30], 0
jmp 0x40daee
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x30]
jle 0x40db11
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov al, byte [eax - 1]
mov byte [ecx + 0x43d168], al
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x40dacf
cmp dword [ebp - 4], 0
jge 0x40db3f
jmp 0x40db20
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
je 0x40db3f
cmp dword [ebp - 4], 0
je 0x40db3f
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x43d168], 0x30
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x40db19
push dword [0x436554]
call fcn.0041ea20
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x40db57
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x40db80
cmp dword [ebp - 0x10], 0
je 0x40db80
mov eax, dword [0x436554]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov al, byte [eax - 1]
mov byte [ecx + 0x43d168], al
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x40db50
cmp dword [ebp - 4], 0
jne 0x40dba2
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40db9d
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x43d168], 0x30
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x40dcf1
cmp dword [ebp + 0x1c], 0
je 0x40dcbb
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x40dbbf
mov dword [ebp - 0x1c], 3
and dword [ebp - 0x24], 0
jmp 0x40dbe0
push dword [0x43655c]
call fcn.0041f078
pop ecx
mov dword [ebp - 0x1c], eax
push 0x3b
push dword [0x43655c]
call fcn.0041f2e0
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40dcb9
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x40dc0d
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x40dc33
cmp dword [ebp - 0x10], 0
je 0x40dc33
cmp dword [ebp - 0x20], 0
je 0x40dc33
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov al, byte [eax - 1]
mov byte [ecx + 0x43d168], al
jmp 0x40dbf8
cmp dword [ebp - 0x24], 0
je 0x40dc64
mov eax, dword [ebp - 0x24]
inc eax
push eax
call fcn.0041f078
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40dc53
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
push 0x3b
mov eax, dword [ebp - 0x24]
inc eax
push eax
call fcn.0041f2e0
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x10], 0
je 0x40dcb4
cmp dword [0x436558], 0
je 0x40dcb4
push dword [0x436558]
call fcn.0041ea20
pop ecx
mov dword [ebp - 0x28], eax
jmp 0x40dc92
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0xc], 0
je 0x40dcb4
cmp dword [ebp - 0x28], 0
je 0x40dcb4
mov eax, dword [0x436558]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov al, byte [eax - 1]
mov byte [ecx + 0x43d168], al
jmp 0x40dc84
jmp 0x40dbe6
jmp 0x40dcf1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jmp 0x40dcd1
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x40dcf1
cmp dword [ebp - 0x10], 0
je 0x40dcf1
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov al, byte [eax - 1]
mov byte [ecx + 0x43d168], al
jmp 0x40dcc3
cmp dword [ebp - 8], 0
je 0x40dd7e
cmp dword [ebp + 0x18], 0xffffffff
jne 0x40dd14
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x43d168], 0x28
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x40dd7e
movsx eax, byte [0x436566]
cmp eax, 3
jge 0x40dd7e
movsx eax, byte [0x436566]
cmp eax, 2
jne 0x40dd3d
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x43d168], 0x20
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
push dword [0x436560]
call fcn.0041ea20
pop ecx
mov dword [ebp - 0x2c], eax
jmp 0x40dd5c
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0xc], 0
je 0x40dd7e
cmp dword [ebp - 0x2c], 0
je 0x40dd7e
mov eax, dword [0x436560]
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov al, byte [eax - 1]
mov byte [ecx + 0x43d168], al
jmp 0x40dd4e
mov eax, dword [ebp - 0xc]
add eax, 0x43d169
leave
ret