Function at 0x401360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x41f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41f8b4]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
je 0x4013a3
cmp dword [0x41f8ac], 0
je 0x40139d
call fcn.00401700
jmp 0x4013a3
push eax
call fcn.00401240
push 0x41d1cc
lea eax, [ebp - 0x30]
mov dword [0x41f8b4], 0
xorps xmm0, xmm0
push esi
push eax
movups xmmword [0x41f8a0], xmm0
call fcn.00406678
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
test eax, eax
jne 0x4013da
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x401403
push 0x14
call edi
push 0x41d1cc
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00406678
add esp, 0xc
test eax, eax
jne 0x4016e0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4016e0
push eax
push 1
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.004068c0
add esp, 0x10
cmp eax, 1
je 0x40143c
push dword [ebp - 0x30]
call fcn.00406266
add esp, 4
mov eax, 0xfffffece
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c53
mov esp, ebp
pop ebp
ret 8
mov eax, 0x1003
cmp word [ebp - 0x40], ax
jbe 0x40146a
push dword [ebp - 0x30]
call fcn.00406266
add esp, 4
mov eax, 0xfffffffa
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c53
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x44], ebx
test ebx, ebx
jne 0x401495
push dword [ebp - 0x30]
call fcn.00406266
add esp, 4
lea eax, [ebx - 0x27]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c53
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push dword [ebp - 0x30]
call fcn.004065a6
mov ecx, ebx
add esp, 0xc
shl ecx, 4
cmp eax, ecx
jge 0x4014b1
push 0x46
call edi
push 0
push 0x10
push dword [ebp - 0x30]
call fcn.004065a6
mov cx, word [ebp - 0x3e]
add esp, 0xc
mov eax, dword [0x41f8a0]
test cl, 1
mov edx, 8
cmovne eax, dword [ebp - 0x34]
test cl, 8
mov dword [0x41f8a0], eax
mov eax, dword [0x41f8a8]
cmovne eax, edx
xor edi, edi
mov dword [0x41f8a8], eax
mov eax, dword [ebp - 0x3c]
mov dword [0x41f8a4], eax
test ebx, ebx
jle 0x401555
push dword [ebp - 0x30]
lea eax, [ebp - 0x40]
push 1
push 0x10
push eax
call fcn.004068c0
mov esi, dword [ebp - 0x3c]
push 0x20
push 1
call fcn.004061e4
mov ecx, eax
add esp, 0x18
mov dword [ecx + 4], esi
cmp dword [0x41f8b4], 0
je 0x401537
mov eax, dword [0x41f8b8]
mov dword [ecx + 0x18], eax
mov eax, dword [0x41f8b8]
mov dword [eax + 0x1c], ecx
jmp 0x40153d
mov dword [0x41f8b4], ecx
mov eax, dword [ebp - 0x38]
inc edi
mov dword [0x41f8b8], ecx
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], edi
cmp edi, ebx
jl 0x4014f8
mov cx, word [ebp - 0x3e]
mov eax, 0x1003
cmp word [ebp - 0x40], ax
jne 0x401642
test cl, 4
je 0x401642
mov esi, dword [0x41f8b4]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
test esi, esi
je 0x4016c0
mov edi, dword [esi + 0xc]
test edi, edi
jle 0x401617
nop
push dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push 1
push 0x18
push eax
call fcn.004068c0
push 0x20
call fcn.004069fb
xorps xmm0, xmm0
add esp, 0x14
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov cx, word [ebp - 0x1a]
mov word [eax + 2], cx
mov dword [eax + 0x1c], 0
cmp dword [esi + 0x14], 0
je 0x401605
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x1c], eax
jmp 0x40160f
mov dword [eax + 0x18], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
sub edi, 1
jne 0x4015a0
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x401597
push dword [ebp - 0x30]
call fcn.00406266
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c53
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [0x41f8b4]
test ebx, ebx
je 0x4016bd
nop dword [eax]
mov edi, dword [ebx + 0xc]
test edi, edi
jle 0x4016b6
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push 1
push 0x10
push eax
call fcn.004068c0
push 0x20
call fcn.004069fb
mov esi, eax
xorps xmm0, xmm0
add esp, 0x14
movups xmmword [esi], xmm0
push esi
movups xmmword [esi + 0x10], xmm0
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x14], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [ebp - 0x28]
push ebx
mov dword [esi + 4], eax
call fcn.00401290
test al, al
jne 0x4016b1
push esi
call fcn.004066bf
add esp, 4
sub edi, 1
jne 0x401657
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x401650
mov ebx, dword [ebp - 0x44]
push dword [ebp - 0x30]
call fcn.00406266
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c53
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 0xffffffe0
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c53
mov esp, ebp
pop ebp
ret 8