Function at 0x401730
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov ebx, dword [ebp]
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x401768
lea eax, [ebp + 0x70]
push 0x423280
push eax
call fcn.00403600
mov ebx, eax
add esp, 8
mov dword [esp + 0x10], ebx
mov dword [ebp], ebx
test ebx, ebx
je 0x4018cd
xorps xmm0, xmm0
push 0x2000
movlpd qword [esp + 0x18], xmm0
call fcn.0040c4cf
mov edx, eax
add esp, 4
mov dword [esp + 0x20], edx
test edx, edx
je 0x401891
push 2
push 0
push 0
push ebx
call fcn.0040bc25
add esp, 0x10
test eax, eax
js 0x40188d
push ebx
call fcn.0040c211
add esp, 4
mov esi, eax
test edx, edx
jne 0x4017df
cmp esi, 8
jb 0x40188d
nop dword [eax + eax]
test edx, edx
jne 0x4017df
cmp esi, 0x2000
jae 0x4017df
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x4017ec
mov edi, esi
mov ebx, edx
add edi, 0xffffe000
adc ebx, 0xffffffff
sub esi, edi
cmp esi, 8
jb 0x401865
push 0
push ebx
push edi
push dword [esp + 0x1c]
call fcn.0040bc25
add esp, 0x10
test eax, eax
js 0x401865
push dword [esp + 0x10]
push esi
push 1
push dword [esp + 0x2c]
call fcn.0040b82e
add esp, 0x10
cmp eax, esi
jne 0x401865
add esi, 0xfffffff9
je 0x40184b
mov edx, dword [esp + 0x20]
lea ecx, [edx - 1]
add ecx, esi
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [0x423250]
jne 0x401845
mov eax, dword [ecx + 4]
cmp eax, dword [0x423258]
je 0x40187c
dec ecx
sub esi, 1
jne 0x401830
mov esi, edi
mov edx, ebx
add esi, 7
adc edx, 0
test ebx, ebx
jne 0x4017c0
test edi, edi
jne 0x4017c0
push dword [esp + 0x20]
call fcn.0040c4b4
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
add esi, edi
mov edi, 0
adc edi, ebx
add esi, 0xffffffff
adc edi, 0xffffffff
jmp 0x401899
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push edx
call fcn.0040c4b4
mov eax, esi
add esp, 4
or eax, edi
je 0x4018cd
push 0
push edi
push esi
push dword [ebp]
call fcn.0040bc25
add esp, 0x10
test eax, eax
jns 0x4018d8
push 0x423560
push 0x4234d8
call fcn.00402280
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret
push dword [ebp]
lea eax, [ebp + 0x18]
push 1
push 0x58
push eax
call fcn.0040b82e
add esp, 0x10
cmp eax, 1
jae 0x40190d
push 0x423584
push 0x423424
call fcn.00402280
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
bswap eax
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0x28]
bswap ecx
sub esi, ecx
mov dword [ebp + 0x20], ecx
bswap eax
sbb edi, 0
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x2c]
add esi, 0x58
bswap eax
adc edi, 0
mov dword [ebp + 0x2c], eax
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x4074], 0
mov dword [0x430a64], eax
xor eax, eax
mov ecx, dword [ebp + 0x24]
add ecx, dword [ebp + 8]
push 0
adc eax, dword [ebp + 0xc]
push eax
push ecx
push dword [ebp]
call fcn.0040bc25
push dword [ebp + 0x28]
call fcn.0040c4cf
add esp, 0x14
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x401993
push 0x42359c
push 0x42331c
call fcn.00402280
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [ebp]
push 1
push dword [ebp + 0x28]
push eax
call fcn.0040b82e
add esp, 0x10
cmp eax, 1
jae 0x4019b3
push 0x4235c0
jmp 0x4018f5
mov eax, dword [ebp + 0x28]
add eax, dword [ebp + 0x10]
push dword [ebp]
mov dword [ebp + 0x14], eax
call fcn.0040b61c
add esp, 4
test eax, eax
je 0x4019e3
push 0x4235dc
call fcn.004023e0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp + 0x14]
jae 0x401a3a
nop dword [eax + eax]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
bswap eax
mov dword [edx + 4], eax
mov eax, dword [edx + 8]
bswap eax
mov dword [edx + 8], eax
mov eax, dword [edx + 0xc]
bswap ecx
bswap eax
mov dword [edx], ecx
mov dword [edx + 0xc], eax
add edx, ecx
cmp edx, dword [ebp + 0x10]
jb 0x401a2d
cmp edx, dword [ebp + 0x14]
jb 0x4019f0
push ebp
call fcn.00401270
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x423260
call fcn.004023e0
add esp, 4
push ebp
call fcn.00401270
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret