Function at 0x40db30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x210], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0041e4b0
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00418750
add esp, 4
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x798]
add eax, 0xb6
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dba7
xor eax, eax
jmp 0x40de0c
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x210]
add ecx, 0x7b8
call fcn.004021b0
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x210]
call fcn.004104d0
test eax, eax
jne 0x40dbdc
xor eax, eax
jmp 0x40de0c
mov edx, dword [ebp - 0x210]
mov esi, dword [edx + 0x798]
sub esp, 0x150
mov ecx, 0x53
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0040cfa0
add esp, 0x150
mov ecx, dword [ebp - 0x210]
mov dword [ecx + 0x79c], eax
mov ecx, dword [ebp - 0x210]
call fcn.004105e0
mov edx, dword [ebp - 0x210]
mov dword [edx + 0x78c], eax
mov eax, dword [ebp - 0x210]
cmp dword [eax + 0x78c], 0
jne 0x40dc3d
xor eax, eax
jmp 0x40de0c
mov ecx, dword [ebp - 0x210]
call fcn.004106b0
test eax, eax
jne 0x40dcf6
mov ecx, dword [ebp - 0x210]
cmp dword [ecx + 0x220], 0
je 0x40dc7a
mov edx, dword [ebp - 0x210]
cmp dword [edx + 0x21c], 0
je 0x40dc7a
mov eax, dword [ebp - 0x210]
cmp dword [eax + 0x10], 0xffffffff
jne 0x40dc8c
mov ecx, dword [ebp - 0x210]
call fcn.0040de20
xor eax, eax
jmp 0x40de0c
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 0x78c]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x210]
mov edx, dword [eax + 0x794]
cmp edx, dword [ecx + 0x790]
jb 0x40dcd4
imul eax, dword [ebp - 0x214], 0x19
xor edx, edx
mov ecx, 0x64
div ecx
add eax, dword [ebp - 0x214]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x210]
call fcn.0040de20
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
mov dword [edx + 0x78c], eax
jmp 0x40dc3d
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x794]
mov dword [ecx + 0x2e8], eax
mov ecx, dword [ebp - 0x210]
cmp dword [ecx + 0x79c], 1
jne 0x40dd93
mov edx, dword [ebp - 0x210]
movzx eax, word [edx + 0x2e2]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 0x2e8]
shr edx, 0x14
add edx, 2
movzx ecx, dx
cmp eax, ecx
je 0x40dd91
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x2e8]
shr eax, 0x14
add eax, 2
mov ecx, dword [ebp - 0x210]
mov word [ecx + 0x2e2], ax
push 0
mov esi, dword [ebp - 0x210]
add esi, 0x228
sub esp, 0x564
mov ecx, 0x159
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x20c]
push edx
call fcn.00417df0
add esp, 0x56c
jmp 0x40de07
mov eax, dword [ebp - 0x210]
movzx ecx, word [eax + 0x2ee]
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0x2e8]
shr eax, 0x14
add eax, 2
movzx edx, ax
cmp ecx, edx
je 0x40de07
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0x2e8]
shr ecx, 0x14
add ecx, 2
mov edx, dword [ebp - 0x210]
mov word [edx + 0x2ee], cx
push 0
mov esi, dword [ebp - 0x210]
add esi, 0x228
sub esp, 0x564
mov ecx, 0x159
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20c]
push eax
call fcn.00417df0
add esp, 0x56c
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cba0
mov esp, ebp
pop ebp
ret