Function at 0x410090
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd270
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 0x18
mov dword [esi + 8], ebx
call fcn.0047e06e
add esp, 4
cmp eax, ebx
je 0x410259
mov dword [esi + 4], eax
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov eax, dword [esi + 4]
mov byte [eax + 0x14], 1
mov ecx, dword [esi + 4]
mov byte [ecx + 0x15], 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00402008
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040fbd0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x34]
push edx
push 0x4cea18
push eax
mov byte [ebp - 4], 3
call fcn.00413740
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
sub ecx, eax
add esp, 0xc
xor edi, edi
test ecx, 0xfffffffc
jle 0x41017f
mov eax, dword [eax + edi*4]
push ecx
mov edx, esp
mov dword [ebp + 8], esp
lea ecx, [ebp - 0x44]
push ecx
push eax
push edx
mov ecx, esi
call fcn.0040f930
mov ecx, esi
call fcn.0040f6a0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
sub edx, eax
inc edi
sar edx, 2
cmp edi, edx
jl 0x410152
cmp dword [esi + 8], ebx
jbe 0x4101a6
mov eax, dword [esi + 4]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4101a3
push edi
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0040d600
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4101e1
mov ecx, dword [ebp - 0x30]
mov dword [ebp + 8], ecx
mov edi, eax
cmp eax, ecx
je 0x4101d8
lea ebx, [ebx]
lea ecx, [ebp - 0x28]
push edi
push ecx
call fcn.0043e3f0
add edi, 4
add esp, 8
cmp edi, dword [ebp + 8]
jne 0x4101c0
mov eax, dword [ebp - 0x34]
push eax
call fcn.0047d656
add esp, 4
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x410221
cmp edi, dword [ebp - 0x40]
je 0x410218
lea ebx, [ebx]
lea edx, [ebp - 0x38]
push edi
push edx
call fcn.0043e3f0
add edi, 4
add esp, 8
cmp edi, dword [ebp - 0x40]
jne 0x410200
mov edi, dword [ebp - 0x44]
push edi
call fcn.0047d656
add esp, 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
call fcn.0047de96
push 0x4e6434
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.0047d9d1
int3