Function at 0x492f44
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569c50
lea esi, [ebp - 0x38]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], 0x569ef3
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x38]
lea esi, [eax - 0xc]
cmp esi, 0x55a154
jne 0x49362b
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569c50
lea esi, [ebp - 0x3c]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], 0x569ef3
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x3c]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x49350f
lea eax, [ebp - 0x1b]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569d01
lea esi, [ebp - 0x40]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x40]
lea esi, [eax - 0xc]
mov ecx, 0x55a154
cmp ecx, esi
jne 0x493595
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x49356b
mov eax, dword [ebx + 0x2c]
or eax, dword [ebx + 0x28]
je 0x493430
mov eax, dword [ebx]
mov edi, dword [eax + 8]
test edi, edi
je 0x4936c1
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569d16
lea esi, [ebp - 0x44]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x44]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x493447
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
lea eax, [ebp - 0x1d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569d2c
lea esi, [ebp - 0x48]
mov dword [esp], esi
call fcn.00509af0
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x48]
lea esi, [eax - 0xc]
mov ecx, 0x55a154
cmp ecx, esi
jne 0x4935c7
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x98], eax
mov edi, dword [ebx + 0x2c]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shl esi, 9
cmp edi, 0
jbe 0x4933bc
lea eax, [ebp - 0x1f]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569d68
lea edi, [ebp - 0x50]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x50]
lea esi, [eax - 0xc]
mov ecx, 0x55a154
cmp ecx, esi
jne 0x4934ab
mov eax, dword [ebx]
mov eax, dword [eax + 8]
shl eax, 9
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x30], eax
test eax, eax
je 0x493541
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569d9b
lea esi, [ebp - 0x54]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x54]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x4934dd
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov eax, dword [eax + 8]
shl eax, 9
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov esi, eax
mov eax, dword [ebx]
mov edi, dword [eax + 8]
shl edi, 9
cmp esi, edi
je 0x493243
lea eax, [ebp - 0x21]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569db4
lea ecx, [ebp - 0x58]
mov dword [esp], ecx
call fcn.00509af0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
lea eax, [ebp - 0x58]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x58]
lea edi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, edi
jne 0x49368f
lea eax, [ebp - 0x22]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569dda
lea edi, [ebp - 0x5c]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x5c]
lea edi, [eax - 0xc]
mov ecx, 0x55a154
cmp ecx, edi
jne 0x493479
xor edi, edi
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
sub eax, esi
sbb edx, edi
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
fld dword [ebx + 0x3c]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
fild qword [ebp - 0x90]
test edx, edx
js 0x49343c
fstp dword [ebp - 0x7c]
fld dword [ebp - 0x7c]
fsubr st(1)
fdivrp st(1)
fmul dword [0x569f54]
fnstcw word [ebp - 0x7e]
mov ax, word [ebp - 0x7e]
mov ah, 0xc
mov word [ebp - 0x80], ax
fldcw word [ebp - 0x80]
fistp dword [ebp - 0x84]
fldcw word [ebp - 0x7e]
mov edi, dword [ebp - 0x84]
mov dword [ebx + 0x40], edi
lea eax, [ebp - 0x23]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569df0
lea esi, [ebp - 0x60]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1000
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x60]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x49365d
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
lea eax, [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str.OS:_Bytes_left_to_send:__llu
lea esi, [ebp - 0x64]
mov dword [esp], esi
call fcn.00509af0
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x64]
lea esi, [eax - 0xc]
mov ecx, 0x55a154
cmp ecx, esi
jne 0x4935f9
mov eax, dword [ebx]
mov eax, dword [eax + 8]
shl eax, 9
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x48], eax
lea eax, [ebx + 0x44]
add esp, 0xbc
pop ebx
pop esi
pop edi
leave
ret
cmp dword [ebp - 0x98], esi
jae 0x49311c
lea eax, [ebp - 0x1e]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x569d44
lea edx, [ebp - 0x4c]
mov dword [esp], edx
call fcn.00509af0
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x98]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
lea eax, [ebp - 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0044092c
mov eax, dword [ebp - 0x4c]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x4936eb
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shl esi, 9
jmp 0x49311c
mov eax, dword [ebx]
mov edi, dword [eax + 8]
jmp 0x49304f
fadd dword [0x569f50]
jmp 0x4932b9
cmp dword [0x554500], 0
jne 0x4937ad
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x493096
lea eax, [ebp - 0x2b]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x493096
cmp dword [0x554500], 0
jne 0x493735
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x49328a
lea eax, [ebp - 0x31]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x49328a
cmp dword [0x554500], 0
jne 0x49374d
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x493163
lea eax, [ebp - 0x2e]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x493163
cmp dword [0x554500], 0
jne 0x493765
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x4931c1
lea eax, [ebp - 0x2f]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x4931c1
cmp dword [0x554500], 0
jne 0x4937dd
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x492fe8
lea eax, [ebp - 0x29]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x492fe8
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
cmp dword [0x554500], 0
jne 0x493795
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x49302b
lea eax, [ebp - 0x2a]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x49302b
cmp dword [0x554500], 0
jne 0x4937c5
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x4930ff
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x4930ff
cmp dword [0x554500], 0
jne 0x4937f5
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x49339b
lea eax, [ebp - 0x33]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x49339b
cmp dword [0x554500], 0
jne 0x493825
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x492f9d
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x492f9d
cmp dword [0x554500], 0
jne 0x49371d
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x493332
lea eax, [ebp - 0x32]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x493332
cmp dword [0x554500], 0
jne 0x49380d
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x493243
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x493243
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
cmp dword [0x554500], 0
jne 0x49377d
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x493420
lea eax, [ebp - 0x2d]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x493420
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x493673
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49348f
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4934c1
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4934f3
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x493701
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4935ab
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49345d
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4935dd
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x493525
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x49360f
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4936a5
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x493641