Function at 0x411500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438fea
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x44cc80]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x20]
push str.CManinstIni::Attach
push eax
mov edi, ecx
mov esi, edx
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x240], ebx
push esi
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00409e20
mov esi, eax
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x41194e
cmp esi, 0x800000
mov dword [edi + 4], ebx
jne 0x41194e
push 0x443158
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.00409fd0
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x41199d
cmp dword [esp + 0x14], ebx
je 0x411943
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.00411ad0
mov byte [esp + 0x240], 1
lea esi, [edi + 0x10]
push eax
mov ecx, esi
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
cmp eax, ebx
jne 0x4115ed
mov dword [esp + 0x18], 0x80800001
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00411bc0
mov byte [esp + 0x240], 2
lea esi, [edi + 0x14]
push eax
mov ecx, esi
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
mov ecx, dword [esi]
cmp dword [ecx - 0xc], ebx
jne 0x41162a
mov dword [esp + 0x18], 0x80800001
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00411cb0
mov byte [esp + 0x240], 3
lea esi, [edi + 0x18]
push eax
mov ecx, esi
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x411667
mov dword [esp + 0x18], 0x80800001
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.00411da0
mov byte [esp + 0x240], 4
lea esi, [edi + 0x1c]
push eax
mov ecx, esi
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
mov edx, dword [esi]
cmp dword [edx - 0xc], ebx
jne 0x4116a4
mov dword [esp + 0x18], 0x80800001
call fcn.00411e90
mov dword [edi + 0x20], eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00411fe0
mov byte [esp + 0x240], 5
lea esi, [edi + 0x24]
push eax
mov ecx, esi
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
mov ecx, dword [esi]
cmp dword [ecx - 0xc], ebx
jne 0x4116e9
mov dword [esp + 0x18], 0x80800001
lea edx, [esp + 0x14]
push edx
push edi
call fcn.004120d0
mov byte [esp + 0x240], 6
lea esi, [edi + 0x28]
push eax
mov ecx, esi
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x4117ef
push 0x206
lea ecx, [esp + 0x2a]
push ebx
push ecx
mov word [esp + 0x30], bx
call fcn.004250c0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00401000
mov byte [esp + 0x240], 7
mov ecx, eax
call fcn.00404a30
mov esi, 0x104
lea ecx, [esp + 0x24]
lea ecx, [ecx]
movzx edx, word [eax]
cmp dx, bx
je 0x411778
mov word [ecx], dx
add ecx, 2
add eax, 2
sub esi, 1
jne 0x411760
jmp 0x41177c
cmp esi, ebx
jne 0x41177f
sub ecx, 2
mov word [ecx], bx
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
lea eax, [esp + 0x24]
push 0x5c
push eax
call fcn.0042338a
add esp, 8
lea ecx, [edi + 0x28]
mov word [eax + 2], bx
call fcn.00404a30
mov edx, 0x104
lea ecx, [esp + 0x24]
cmp word [ecx], bx
je 0x4117c5
add ecx, 2
sub edx, 1
jne 0x4117b6
jmp 0x4117e0
cmp edx, ebx
je 0x4117e0
mov ecx, 0x104
sub ecx, edx
mov edx, 0x104
sub edx, ecx
lea ecx, [esp + ecx*2 + 0x24]
call fcn.004044b0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4117f7
mov dword [esp + 0x18], 0x80800001
lea edx, [esp + 0x14]
push edx
push edi
call fcn.004121c0
mov byte [esp + 0x240], 8
lea ecx, [edi + 0x2c]
push eax
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004122b0
mov byte [esp + 0x240], 9
lea esi, [edi + 0x30]
push eax
mov ecx, esi
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
mov ecx, dword [esi]
cmp dword [ecx - 0xc], ebx
jne 0x411860
mov dword [esp + 0x18], 0x80800001
mov ecx, edi
call fcn.004123a0
lea edx, [esp + 0x14]
push edx
push edi
mov dword [edi + 0x34], eax
call fcn.00412450
mov byte [esp + 0x240], 0xa
lea ecx, [edi + 0x38]
push eax
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00412540
mov byte [esp + 0x240], 0xb
lea ecx, [edi + 0x3c]
push eax
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.00412630
mov byte [esp + 0x240], 0xc
lea ecx, [edi + 0x40]
push eax
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
mov ecx, edi
call fcn.00412720
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], edx
call fcn.00412840
lea edx, [esp + 0x14]
push edx
push edi
mov dword [edi + 0x50], eax
call fcn.00412990
mov byte [esp + 0x240], 0xd
lea ecx, [edi + 0x54]
push eax
call fcn.00404a50
mov byte [esp + 0x240], bl
lea ecx, [esp + 0x14]
call fcn.00405f60
mov ecx, edi
call fcn.00412a80
cmp dword [esp + 0x18], 0x800000
mov dword [edi + 0x58], eax
jne 0x41194a
mov dword [edi + 4], 1
mov esi, dword [esp + 0x18]
push esi
push str.return_DWORD__d__n
lea eax, [esp + 0x24]
push 2
push eax
call fcn.00404dc0
add esp, 0x10
mov dword [esp + 0x240], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00405a70
mov eax, esi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004237ad
mov esp, ebp
pop ebp
ret
mov esi, eax
jmp 0x41194e