Function at 0x480410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x577830]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc6c]
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x48043b
add eax, 4
jmp 0x48043d
xor eax, eax
lea ecx, [esp + 0x34]
push ecx
push esi
push eax
call dword [0x59e05c]
test eax, eax
jne 0x480456
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
lea eax, [esp + 0x48]
call fcn.0044e4d0
fstp qword [ebx + 0x16c8]
mov eax, dword [ebx + 0xc6c]
cmp eax, esi
je 0x480474
add eax, 4
jmp 0x480476
xor eax, eax
lea edx, [esp + 0x58]
push edx
push esi
push eax
call dword [0x59e05c]
neg eax
sbb eax, eax
and eax, dword [esp + 0x78]
cmp eax, esi
mov dword [ebx + 0x16d0], eax
je 0x480a42
mov eax, dword [ebx + 0xc6c]
cmp eax, esi
je 0x4804a8
add eax, 4
jmp 0x4804aa
xor eax, eax
push 0x2000
push 0x5586a8
push eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov byte [esp + 0x4d], 0
mov byte [esp + 0x4c], 0
mov dword [esp + 0x54], esi
call fcn.0046d460
mov dword [esp + 0x40], eax
lea eax, [ebx + 0x1694]
lea edi, [esp + 0x34]
call fcn.0043dec0
mov edi, dword [esp + 0x34]
cmp edi, esi
je 0x480508
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, esi
jne 0x480513
push edi
call fcn.0044d390
add esp, 4
mov dword [esp + 0x34], esi
lea esi, [esp + 0x34]
call fcn.0046dc30
xor esi, esi
mov eax, dword [ebx + 0x1698]
cmp eax, esi
jne 0x480534
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005120db
mov esp, ebp
pop ebp
ret 4
push eax
push 1
lea ecx, [esp + 0x14]
push 4
push ecx
mov dword [esp + 0x1c], esi
call fcn.0052edba
add esp, 0x10
cmp eax, 1
jne 0x48051d
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 0x1698]
push esi
push eax
push edx
mov dword [ebx + 0x16d0], eax
call fcn.005303b8
mov eax, dword [ebx + 0x1698]
lea ecx, [esp + 0x2c]
add esp, 0xc
push ecx
call fcn.0043c3e0
add esp, 4
cmp eax, esi
jne 0x480a64
cmp dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
jbe 0x480a42
jmp 0x4805a2
xor esi, esi
mov ecx, dword [ebx + 0x1698]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x28]
mov dword [esp + 0x14], esi
call fcn.0043c700
mov esi, eax
add esp, 4
test esi, esi
jne 0x480a78
mov eax, dword [ebx + 0x1698]
lea ecx, [esp + 0x30]
push ecx
call fcn.0043c3e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x480a78
mov eax, dword [ebx + 0x16b8]
test al, 1
jne 0x480761
shr eax, 1
lea edx, [eax*4]
cmp edx, 0x100000
mov esi, eax
jae 0x48061c
lea ecx, [eax - 1]
test eax, ecx
jne 0x480628
test eax, eax
je 0x480615
lea esi, [eax + eax]
jmp 0x480628
mov esi, 1
jmp 0x480628
and esi, 0x7ffffc00
add esi, 0x400
cmp esi, eax
jbe 0x480724
test esi, esi
mov dword [esp + 0x18], 0
je 0x480709
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0044ce70
add esp, 4
test eax, eax
je 0x480688
lea edi, [eax + 4]
push 0x4010d0
mov dword [eax], esi
push 4
mov eax, esi
mov ecx, edi
call fcn.00407e00
test edi, edi
mov dword [esp + 0x18], edi
jne 0x48068f
xor eax, eax
jmp 0x48072a
mov eax, dword [ebx + 0x16b8]
shr eax, 1
cmp eax, esi
mov dword [esp + 0x14], esi
ja 0x4806a3
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
jbe 0x480709
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x16b4]
mov edx, dword [edi]
cmp edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
je 0x4806f5
call fcn.00401070
mov eax, dword [esi]
test eax, eax
mov dword [edi], eax
je 0x4806f5
movzx ecx, byte [eax]
cmp ecx, 0x80
jae 0x4806ee
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x4806f5
mov eax, edi
call fcn.00449d40
mov eax, dword [esp + 0xc]
add eax, 1
add edi, 4
cmp eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jb 0x4806b3
mov eax, dword [ebx + 0x16b4]
test eax, eax
je 0x480718
call fcn.00407d60
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x16b4], eax
jmp 0x48072a
mov eax, dword [ebx + 0x16b4]
test eax, eax
je 0x480761
mov edx, dword [ebx + 0x16b8]
mov eax, dword [ebx + 0x16b4]
shr edx, 1
lea eax, [eax + edx*4]
lea esi, [esp + 0x10]
call fcn.004010e0
mov eax, dword [ebx + 0x16b8]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [ebx + 0x16b8], ecx
mov ecx, dword [ebx + 0x16c0]
test cl, 1
jne 0x480817
shr ecx, 1
lea edx, [ecx*4]
cmp edx, 0x100000
mov eax, ecx
jae 0x48079a
lea edx, [ecx - 1]
test ecx, edx
jne 0x4807a4
test ecx, ecx
je 0x480793
lea eax, [ecx + ecx]
jmp 0x4807a4
mov eax, 1
jmp 0x4807a4
and eax, 0x7ffffc00
add eax, 0x400
cmp eax, ecx
jbe 0x4807e5
test eax, eax
je 0x4807c8
mov ecx, dword [ebx + 0x16bc]
add eax, eax
add eax, eax
push eax
push ecx
call fcn.0044d0b0
add esp, 8
mov dword [ebx + 0x16bc], eax
jmp 0x4807e5
mov eax, dword [ebx + 0x16bc]
test eax, eax
je 0x4807e5
push eax
call fcn.0044d390
add esp, 4
mov dword [ebx + 0x16bc], 0
mov eax, dword [ebx + 0x16bc]
test eax, eax
je 0x480817
mov edx, dword [ebx + 0x16c0]
mov ecx, dword [esp + 0x30]
shr edx, 1
mov dword [eax + edx*4], ecx
mov eax, dword [ebx + 0x16c0]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [ebx + 0x16c0], edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x480824
add eax, 4
jmp 0x480826
xor eax, eax
push 0x3a
push eax
call fcn.00512130
mov esi, eax
add esp, 8
test esi, esi
je 0x48083c
add esi, 1
jmp 0x480854
lea eax, [esp + 0x10]
call fcn.00449d40
mov eax, dword [esp + 0x10]
test eax, eax
je 0x480852
lea esi, [eax + 4]
jmp 0x480854
xor esi, esi
test esi, esi
mov dword [esp + 0xc], 0
je 0x48087c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
add ecx, 1
test al, al
jne 0x480865
sub ecx, edx
mov eax, ecx
push esi
lea edi, [esp + 0x10]
call fcn.0044a090
mov eax, dword [ebx + 0x16b0]
test al, 1
jne 0x4809fe
shr eax, 1
lea ecx, [eax*4]
cmp ecx, 0x100000
mov esi, eax
jae 0x4808b4
lea edx, [eax - 1]
test eax, edx
jne 0x4808c0
test eax, eax
je 0x4808ad
lea esi, [eax + eax]
jmp 0x4808c0
mov esi, 1
jmp 0x4808c0
and esi, 0x7ffffc00
add esi, 0x400
cmp esi, eax
jbe 0x4809c1
test esi, esi
mov dword [esp + 0x14], 0
je 0x4809a6
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0044ce70
add esp, 4
test eax, eax
je 0x480920
lea edi, [eax + 4]
push 0x4010d0
mov dword [eax], esi
push 4
mov eax, esi
mov ecx, edi
call fcn.00407e00
test edi, edi
mov dword [esp + 0x14], edi
jne 0x480927
xor eax, eax
jmp 0x4809c7
mov eax, dword [ebx + 0x16b0]
shr eax, 1
cmp eax, esi
mov dword [esp + 0x18], esi
ja 0x48093b
mov dword [esp + 0x18], eax
xor eax, eax
cmp dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
jbe 0x4809a6
mov edi, dword [esp + 0x14]
jmp 0x480950
mov ecx, dword [ebx + 0x16ac]
mov edx, dword [edi]
cmp edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
je 0x480992
call fcn.00401070
mov eax, dword [esi]
test eax, eax
mov dword [edi], eax
je 0x480992
movzx ecx, byte [eax]
cmp ecx, 0x80
jae 0x48098b
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x480992
mov eax, edi
call fcn.00449d40
mov eax, dword [esp + 0x2c]
add eax, 1
add edi, 4
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
jb 0x480950
mov eax, dword [ebx + 0x16ac]
test eax, eax
je 0x4809b5
call fcn.00407d60
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x16ac], eax
jmp 0x4809c7
mov eax, dword [ebx + 0x16ac]
test eax, eax
je 0x4809fe
mov edx, dword [ebx + 0x16b0]
mov eax, dword [ebx + 0x16ac]
shr edx, 1
lea eax, [eax + edx*4]
lea esi, [esp + 0xc]
call fcn.004010e0
mov eax, dword [ebx + 0x16b0]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [ebx + 0x16b0], ecx
lea edi, [esp + 0xc]
call fcn.00401070
lea edi, [esp + 0x10]
mov byte [ebx + 0x16a8], 1
call fcn.00401070
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
jb 0x4805a0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x480a40
push eax
call fcn.0044d390
add esp, 4
lea ecx, [ecx]
xor esi, esi
mov eax, dword [ebx + 0x244]
cmp eax, esi
je 0x480a4f
lea esi, [eax + 4]
push 0x47f8d0
push 0x52
push esi
lea ecx, [ebx + 0x138]
call fcn.00467870
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005120db
mov esp, ebp
pop ebp
ret 4
lea edi, [esp + 0x10]
call fcn.00401070
mov eax, dword [esp + 0x24]
test eax, eax
je 0x480a92
push eax
call fcn.0044d390
add esp, 4
mov ecx, dword [esp + 0x7c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.005120db
mov esp, ebp
pop ebp
ret 4