Function at 0x410530
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c927
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ecx
mov eax, 0x115c
call fcn.00436fa0
mov eax, dword [0x474010]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1024], edx
mov esi, ecx
mov dword [ebp - 0x10dc], esi
mov ecx, dword [ebx + 0xc]
xor edi, edi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1150], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x114c], esi
mov dword [ebp - 0x1158], ecx
mov dword [ebp - 0x1154], edi
push edi
lea ecx, [ebp - 0x10ec]
mov dword [ebp - 4], edi
push ecx
lea ecx, [ebp - 0x10e0]
mov dword [ebp - 0x10ec], 0xc
push ecx
lea ecx, [ebp - 0x10dc]
mov dword [ebp - 0x10e4], 1
push ecx
mov dword [ebp - 0x10e8], edi
mov byte [ebp - 4], 1
call eax
xorps xmm0, xmm0
test eax, eax
jne 0x41064b
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x46b344
mov dword [esi + 0x14], 0
call fcn.0041a540
mov ecx, dword [ebx + 0x28]
cmp ecx, 8
jb 0x410644
mov edx, dword [ebx + 0x14]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41063a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410bc7
push ecx
push edx
call fcn.00436385
add esp, 8
mov eax, esi
jmp 0x410ba9
lea ecx, [ebp - 0x1148]
movlpd qword [ebp - 0x1134], xmm0
push ecx
xor eax, eax
movlpd qword [ebp - 0x112c], xmm0
lea ecx, [ebp - 0x1138]
mov word [ebp - 0x10fe], ax
push ecx
push 0
push 0
push 0
mov word [ebp - 0x1108], ax
mov eax, dword [ebp - 0x10e0]
mov dword [ebp - 4], 0
push 1
mov byte [ebp - 4], 5
cmp dword [ebx + 0x28], 8
mov dword [ebp - 0x10fc], eax
mov dword [ebp - 0x10f8], eax
lea eax, [ebx + 0x14]
cmovae eax, dword [ebx + 0x14]
push 0
push 0
push eax
push 0
movlpd qword [ebp - 0x1124], xmm0
movlpd qword [ebp - 0x111c], xmm0
movlpd qword [ebp - 0x1114], xmm0
movlpd qword [ebp - 0x1106], xmm0
mov dword [ebp - 0x1138], 0x44
mov dword [ebp - 0x110c], 0x101
call dword [ebp - 0x1024]
test eax, eax
jne 0x410779
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
cmp eax, 2
jne 0x4105eb
sub esp, 0x18
mov ecx, esp
push 0x4b
movups xmmword [ecx], xmm0
push str.089099090036091110091022037089022050111101107104022089101099099087100090052
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0041a9a0
mov ecx, esi
call fcn.0041deb0
mov ecx, dword [ebx + 0x28]
add esp, 0x18
cmp ecx, 8
jb 0x410644
mov edx, dword [ebx + 0x14]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41063a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410bc7
push ecx
push edx
call fcn.00436385
add esp, 8
mov eax, esi
jmp 0x410ba9
push dword [ebp - 0x10e0]
call dword [ebp - 0x1158]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x106c]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x105c], 0
push 0x46b27b
movups xmmword [ebp - 0x106c], xmm0
mov dword [ebp - 0x1058], 0
call fcn.0041a9a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x103c]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x102c], 0
push 0x46b344
movups xmmword [ebp - 0x103c], xmm0
mov dword [ebp - 0x1028], 0
call fcn.0041a540
mov byte [ebp - 4], 9
push 0
lea eax, [ebp - 0x1024]
push eax
push 0xfff
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x10dc]
call dword [ebp - 0x1150]
test eax, eax
je 0x410a2a
mov eax, dword [ebp - 0x1024]
test eax, eax
je 0x410a2a
cmp eax, 0x1000
jae 0x410bd6
mov byte [ebp + eax - 0x1020], 0
lea ecx, [ebp - 0x1084]
push 0x800
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x1074], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1070], 0
push eax
movups xmmword [ebp - 0x1084], xmm0
call fcn.0041a540
push 0x50
lea eax, [ebp - 0x10d8]
mov byte [ebp - 4], 0xa
push 0
push eax
call fcn.00437bd0
add esp, 0xc
lea ecx, [ebp - 0x10d8]
call fcn.00412580
lea ecx, [ebp - 0x1020]
mov byte [ebp - 4], 0xb
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4108a2
sub ecx, edx
lea eax, [ebp - 0x1020]
add eax, ecx
lea ecx, [ebp - 0x10d8]
push eax
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x1054]
push eax
call fcn.004163c0
or edi, 4
mov dword [ebp - 0x1154], edi
mov byte [ebp - 4], 0xc
mov eax, 0x7ffffffe
mov edx, dword [ebp - 0x102c]
sub eax, edx
mov edi, dword [ebp - 0x1044]
cmp eax, edi
jb 0x410bcc
cmp dword [ebp - 0x1028], 8
lea ecx, [ebp - 0x103c]
push edi
cmovae ecx, dword [ebp - 0x103c]
lea eax, [ebp - 0x1054]
cmp dword [ebp - 0x1040], 8
cmovae eax, dword [ebp - 0x1054]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x1150]
lea ecx, [ebp - 0x1170]
call fcn.0041c390
mov edi, dword [ebp - 0x1154]
lea eax, [ebp - 0x1170]
push eax
lea ecx, [ebp - 0x103c]
or edi, 2
call fcn.004142c0
mov ecx, dword [ebp - 0x115c]
cmp ecx, 8
jb 0x41098e
mov edx, dword [ebp - 0x1170]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410984
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410bd1
push ecx
push edx
call fcn.00436385
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x1040]
cmp ecx, 8
jb 0x4109d2
mov edx, dword [ebp - 0x1054]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4109c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410bd1
push ecx
push edx
call fcn.00436385
add esp, 8
lea ecx, [ebp - 0x10d8]
call fcn.004124c0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1070]
cmp ecx, 8
jb 0x4107f4
mov edx, dword [ebp - 0x1084]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410a1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410bd1
push ecx
push edx
call fcn.00436385
add esp, 8
jmp 0x4107f4
mov edi, dword [ebp - 0x1158]
mov dword [ebp - 4], 8
mov byte [ebp - 4], 0xe
push dword [ebp - 0x10dc]
call edi
push dword [ebp - 0x1148]
call edi
push dword [ebp - 0x1144]
call edi
mov ecx, dword [ebp - 0x1058]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ebp - 0x103c]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x102c]
movq qword [esi + 0x10], xmm0
cmp ecx, 0x10
jb 0x41060a
mov edx, dword [ebp - 0x106c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410ab2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410bc7
push ecx
push edx
call fcn.00436385
add esp, 8
jmp 0x41060a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00436030
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004432a9
call fcn.00401560
call fcn.004432a9
call fcn.00436165
int3