Function at 0x412900
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp ebx, 7
jbe 0x412998
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
jne 0x412998
movzx edx, word [eax + 6]
xor edi, edi
test dx, dx
mov esi, eax
cmove esi, edi
test esi, esi
je 0x412956
movzx ecx, word [esi + 4]
cmp ecx, 0x10
jb 0x412995
cmp dword [esi], ecx
jb 0x412995
test cl, 7
jne 0x412995
mov word [ebp - 0x28], dx
lea edi, [ecx - 0x10]
sub ebx, ecx
add ecx, eax
jmp 0x412960
mov word [ebp - 0x28], dx
add ebx, 0xfffffff8
lea ecx, [eax + 8]
mov dword [ebp - 0x34], ecx
lea ecx, [esi + 8]
lea edx, [eax + 4]
test esi, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
cmove ecx, edx
cmp edi, 0x103
ja 0x412995
mov eax, edi
shr eax, 2
movzx edx, word [ecx]
mov dword [ebp - 0x30], eax
cmp eax, edx
jb 0x412995
test edx, edx
je 0x4129b2
cmp dword [ebp + 0x14], 1
jne 0x4129b2
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov cl, byte [0x7ad70c]
test cl, 1
mov dword [ebp - 0x40], edx
je 0x4129ec
lea ecx, [ebx + 0x10]
cmp ecx, 0xf8
ja 0x4129ec
cmp edi, 3
ja 0x4129ec
xor eax, eax
cmp word [ebp - 0x28], 0
setne al
lea edi, [ebx + eax*8]
add edi, 8
cmp edi, 0xf8
jbe 0x412bf6
push 0x24
call fcn.006c90b6
add esp, 4
mov ecx, eax
movzx eax, word [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov edx, ebx
push eax
push dword [ebp - 0x30]
push ebx
call fcn.00412720
add esp, 0xc
test ebx, ebx
je 0x412a27
mov ecx, dword [ebp - 0x2c]
call fcn.00412d30
push ebx
push dword [ebp - 0x34]
push eax
call fcn.006cca40
add esp, 0xc
test esi, esi
je 0x412a94
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
cmp word [eax + 4], 0x10
je 0x412a88
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
add eax, 0x10
mov dword [ebp - 0x28], eax
mov edi, dword [ebp + 0xc]
add edi, 0x10
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
movzx eax, word [eax + 4]
add eax, 0xfffffff0
push eax
push edi
push dword [ebp - 0x28]
call fcn.006cca40
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], 8
jmp 0x412a9e
mov dword [ebp - 0x28], 4
mov eax, dword [ebp - 0x3c]
movzx ebx, word [eax]
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov ecx, dword [ebp - 0x28]
mov word [eax + ecx], bx
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x412bed
lea eax, [eax*4]
lea edi, [eax + eax*4]
push edi
call fcn.006c90b6
add esp, 4
mov ebx, eax
add eax, edi
mov dword [ebp - 0x30], eax
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax]
lea ecx, [ebx + esi]
call fcn.0042efe0
add esi, 0x14
cmp edi, esi
jne 0x412af0
cmp word [ebp - 0x40], 0
je 0x412cf2
mov dword [ebp - 0x48], edi
xor edi, edi
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x2c]
jmp 0x412b57
mov dword [ebp - 0x28], esp
push eax
push eax
mov eax, esp
push ecx
push esi
push eax
call fcn.0042f460
add esp, 0xc
lea esi, [ebp - 0x24]
mov ecx, esi
call fcn.0042f010
mov esp, dword [ebp - 0x28]
mov ecx, ebx
push esi
call fcn.0042f100
mov ecx, esi
call fcn.0042f190
add edi, 1
add ebx, 0x14
cmp dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x2c]
je 0x412cef
mov eax, dword [eax + 0x20]
mov esi, dword [eax + edi*4]
push esi
call fcn.0042f440
add esp, 4
test al, al
jne 0x412c97
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x412b17
mov dword [ebp - 0x28], esp
push eax
push eax
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
mov eax, esp
mov dword [eax], 0
test esi, esi
je 0x412be0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
add edx, 1
cmp edx, 2
jb 0x412bc6
mov dword [ebp - 0x4c], eax
call fcn.0045f9d0
mov eax, dword [ebp - 0x34]
push dword [eax]
call fcn.00474ca0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x34]
add esp, 4
mov dword [ecx], 0
cmp esi, 0xffffffff
je 0x412bd6
mov dword [ecx], esi
mov esi, eax
call fcn.0045f9d0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x3c]
call fcn.0048685c
mov esp, dword [ebp - 0x38]
jmp 0x412b29
xor ebx, ebx
xor ecx, ecx
jmp 0x412cf5
mov dword [ebp - 0x30], eax
push 0x100
call fcn.006c90b6
add esp, 4
mov dword [eax], method.ATL::CAtlStringMgr.virtual_20
xorps xmm0, xmm0
movups xmmword [eax + 0xc], xmm0
movups xmmword [eax + 0x1c], xmm0
movups xmmword [eax + 0x2c], xmm0
movups xmmword [eax + 0x3c], xmm0
movups xmmword [eax + 0x4c], xmm0
movups xmmword [eax + 0x5c], xmm0
movups xmmword [eax + 0x6c], xmm0
movups xmmword [eax + 0x7c], xmm0
movups xmmword [eax + 0x8c], xmm0
movups xmmword [eax + 0x9c], xmm0
movups xmmword [eax + 0xac], xmm0
movups xmmword [eax + 0xbc], xmm0
movups xmmword [eax + 0xcc], xmm0
movups xmmword [eax + 0xdc], xmm0
movups xmmword [eax + 0xec], xmm0
mov dword [eax + 0xfc], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edi
movzx ecx, word [ebp - 0x28]
mov word [eax + 0xe], cx
test cx, cx
mov dword [ebp - 0x2c], eax
je 0x412a0e
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx*8 + 8]
mov word [eax + 0xc], cx
jmp 0x412a0e
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x412ccd
cmp dword [ebp - 0x30], edi
mov ebx, dword [ebp - 0x48]
je 0x412cc1
mov esi, edi
add esi, 0xffffffec
lea ecx, [esi + ebx]
call fcn.0042f190
add ebx, 0xffffffec
jne 0x412cb4
push edi
call fcn.006c90e6
add esp, 4
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41299e
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
jmp 0x41299e
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
mov esi, esp
sub esp, 0xc
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov esp, esi
mov esi, dword [ebp + 8]
mov dword [esi], ebx
jmp 0x41299e