Function at 0x40a590
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x411fdc
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov esi, dword [esp + 0xf8]
mov edi, dword [esp + 0xfc]
mov ebx, dword [esp + 0xf4]
mov dword [esp + 0x1c], esi
push dword [esp + 0x1c]
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
mov dword [esp + 0x20], edi
call fcn.0040b780
mov eax, dword [esi]
add esp, 8
mov dword [esi + 4], eax
mov byte [edi], 0
cmp dword [ebx + 0x14], 8
jb 0x40a60c
mov ecx, dword [ebx]
jmp 0x40a60e
mov ecx, ebx
push ecx
push 0x80
push 3
push ecx
push 0
mov edx, 0x80000000
call fcn.00402c50
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x40a74f
test edi, edi
je 0x40a74f
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
movq qword [esp + 0x20], xmm0
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0xec], esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
movlpd qword [esp + 0x50], xmm0
push eax
lea eax, [esp + 0x54]
movlpd qword [esp + 0x34], xmm0
push eax
push ebx
movlpd qword [esp + 0x4c], xmm0
call fcn.0040ad60
test al, al
je 0x40a713
mov ebx, dword [esp + 0x4c]
mov ecx, ebx
mov ebp, dword [esp + 0x50]
add ecx, 0xffffffff
mov eax, ebp
adc eax, 0xffffffff
test eax, eax
ja 0x40a70f
jb 0x40a6b9
cmp ecx, 0x4ffffe
ja 0x40a70f
lea eax, [esp + 0x17]
mov byte [esp + 0x17], 0
push eax
push ebx
lea ecx, [esp + 0x28]
call fcn.00402f00
push 0
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0
push eax
push ebx
push dword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
xor ecx, ecx
cmp ecx, ebp
ja 0x40a70b
jb 0x40a6f8
cmp eax, ebx
jae 0x40a70b
mov byte [esp + 0x17], cl
lea ecx, [esp + 0x17]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00402f00
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, esi
jne 0x40a77b
mov dword [esp + 0xec], 0xffffffff
test ebp, ebp
je 0x40a74f
push ebp
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
xor al, al
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0040f90e
add esp, 0xdc
ret 0xc
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
movq qword [esp + 0x2c], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0xec], 1
lea ecx, [esp + 0xbc]
call fcn.0040cb80
lea eax, [esp + 0x2c]
sub esi, ebp
push eax
push esi
push ebp
call fcn.0040ce40
test al, al
jne 0x40a7fb
mov eax, dword [esp + 0x18]
mov byte [eax], 1
mov byte [esp + 0xec], 0
lea ecx, [esp + 0x2c]
call fcn.00402ed0
mov dword [esp + 0xec], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402ed0
jmp 0x40a74f
mov eax, dword [esp + 0x30]
xor edx, edx
mov ebx, dword [esp + 0x2c]
mov ecx, 0x3e8
sub eax, ebx
div ecx
mov edi, eax
test edx, edx
jne 0x40a7ca
test edi, edi
jne 0x40a843
mov byte [esp + 0xec], dl
lea ecx, [esp + 0x2c]
call fcn.00402ed0
mov dword [esp + 0xec], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402ed0
mov al, 1
jmp 0x40a751
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
movq qword [esp + 0x3c], xmm0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov byte [esp + 0xec], 2
lea ecx, [esp + 0x3c]
push edi
call fcn.0040b270
imul eax, edi, 0x3e8
push eax
push ebx
mov ebx, dword [esp + 0x44]
push ebx
call sub.MSVCR120.dll_memcpy
mov ecx, dword [esp + 0x4c]
mov eax, 0x10624dd3
sub ecx, ebx
add esp, 0xc
imul ecx
xor esi, esi
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x40a8e6
mov eax, dword [esp + 0x3c]
add eax, 0x382
jmp 0x40a8c0
cmp dword [eax - 0x382], 0x23ab45db
jne 0x40a934
xor ecx, ecx
inc esi
mov word [eax - 0x100], cx
mov word [eax], cx
mov word [eax + 0x48], cx
add eax, 0x3e8
cmp esi, ebx
jb 0x40a8c0
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0040b140
lea ecx, [esp + 0x54]
call fcn.00408110
mov byte [esp + 0xec], 3
test ebx, ebx
je 0x40aa4f
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
add esi, 0x284
jmp 0x40a920
cmp word [esi - 0x280], 0
lea edx, [esi - 0x280]
jne 0x40a951
xor ecx, ecx
jmp 0x40a965
mov eax, dword [esp + 0x18]
mov byte [eax], 1
mov byte [esp + 0xec], 1
lea ecx, [esp + 0x3c]
call fcn.00402ed0
jmp 0x40a7d1
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a956
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x5c]
call fcn.004025e0
cmp word [esi], 0
jne 0x40a97a
xor ecx, ecx
jmp 0x40a98f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a980
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x74]
call fcn.004025e0
mov eax, dword [esi + 0x148]
lea edx, [esi + 0x100]
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 0x14c]
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 0x150]
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 0x154]
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0x158]
mov dword [esp + 0xac], eax
mov eax, dword [esi + 0x15c]
mov dword [esp + 0xb0], eax
cmp word [edx], 0
jne 0x40a9f8
xor ecx, ecx
jmp 0x40aa0f
mov ecx, edx
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa00
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x8c]
call fcn.004025e0
mov eax, dword [esi + 0x160]
mov ecx, ebp
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0xbc], 0
call fcn.0040b180
add esi, 0x3e8
dec ebx
jne 0x40a920
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov byte [eax], 0
mov byte [esp + 0xec], 2
lea ecx, [esp + 0x54]
call fcn.00408dd0
mov byte [esp + 0xec], 1
mov eax, dword [esp + 0x3c]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x40aa9b
push eax
call esi
add esp, 4
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov byte [esp + 0xec], 0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40aac9
push eax
call esi
add esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0xec], 0xffffffff
test ebp, ebp
je 0x40aaf6
push ebp
call esi
add esp, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov al, 1
jmp 0x40a751