Function at 0x447fe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cd500
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x51c080]
xor eax, esp
mov dword [esp + 0x850], eax
push ebx
push esi
push edi
mov eax, dword [0x51c080]
xor eax, esp
push eax
lea eax, [esp + 0x868]
mov dword fs:[0], eax
xor ebx, ebx
push 0x800
lea eax, [esp + 0x60]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x24], ebx
call fcn.004ab450
add esp, 0xc
push 6
push str.CONFIG
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.004102a0
mov dword [esp + 0x870], ebx
mov ecx, esi
add edi, 0x1c
push ecx
mov ecx, edi
mov dword [esp + 0x1c], 1
call fcn.00410880
cmp dword [eax + 0x18], 8
jb 0x448087
mov eax, dword [eax + 4]
jmp 0x44808a
add eax, 4
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x448090
sub eax, edx
sar eax, 1
je 0x4480fd
push 6
push str.CONFIG
lea esi, [esp + 0x44]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.004102a0
mov dword [esp + 0x870], 1
mov edx, esi
push edx
mov ecx, edi
mov dword [esp + 0x1c], 3
call fcn.00410880
cmp dword [eax + 0x18], 8
jb 0x4480ea
mov eax, dword [eax + 4]
jmp 0x4480ed
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [esp + 0x17], 1
jne 0x448101
mov byte [esp + 0x17], bl
mov dword [esp + 0x870], ebx
test byte [esp + 0x18], 2
je 0x44813c
and dword [esp + 0x18], 0xfffffffd
cmp dword [esp + 0x54], 8
jb 0x448128
mov eax, dword [esp + 0x40]
push eax
call fcn.004993dd
add esp, 4
mov esi, 7
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jmp 0x448141
mov esi, 7
mov dword [esp + 0x870], 0xffffffff
test byte [esp + 0x18], 1
je 0x448179
and dword [esp + 0x18], 0xfffffffe
cmp dword [esp + 0x34], 8
jb 0x44816c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004993dd
add esp, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
cmp byte [esp + 0x17], bl
je 0x448261
push 6
mov dword [esp + 0x58], esi
push str.CONFIG
lea esi, [esp + 0x44]
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.004102a0
mov dword [esp + 0x870], 2
push 0xb
push str.CONFIG_FILE
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.004102a0
mov byte [esp + 0x870], 3
lea edx, [esp + 0x3c]
push edx
mov ecx, edi
call fcn.00410880
mov ecx, dword [esp + 0x38]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
add ecx, 0x10
call fcn.0040fa50
push 0xffffffffffffffff
mov ecx, eax
push ebx
mov eax, esi
call fcn.0040f4f0
mov byte [esp + 0x870], 2
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x44821f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004993dd
add esp, 4
mov edi, 7
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
mov dword [esp + 0x870], 0xffffffff
cmp dword [esp + 0x54], esi
jb 0x44824f
mov edx, dword [esp + 0x40]
push edx
call fcn.004993dd
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jmp 0x448390
push esi
mov dword [esp + 0x38], esi
push str.SRC_DIR
lea esi, [esp + 0x24]
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.004102a0
mov dword [esp + 0x870], 4
mov edi, dword [esp + 0x38]
mov eax, esi
add edi, 0x10
push eax
mov ecx, edi
call fcn.0040fa50
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x4482a8
mov eax, dword [eax + 4]
jmp 0x4482ab
add eax, 4
push str.config.xml
push eax
push 0x4dd780
lea ecx, [esp + 0x68]
push 0x400
push ecx
call fcn.004a9ca9
add esp, 0x14
mov dword [esp + 0x870], 0xffffffff
cmp dword [esp + 0x34], esi
jb 0x4482e6
mov edx, dword [esp + 0x20]
push edx
call fcn.004993dd
add esp, 4
lea eax, [esp + 0x5c]
mov esi, 7
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x448390
push 0xb
mov dword [esp + 0x38], esi
push str.CONFIG_FILE
lea esi, [esp + 0x24]
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.004102a0
mov dword [esp + 0x870], 5
mov ecx, esi
push ecx
mov ecx, edi
call fcn.0040fa50
lea ecx, [esp + 0x5c]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x448344
sub ecx, esi
sar ecx, 1
push ecx
lea edx, [esp + 0x60]
push edx
mov esi, eax
call fcn.004102a0
mov dword [esp + 0x870], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x44837f
mov eax, dword [esp + 0x20]
push eax
call fcn.004993dd
add esp, 4
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
mov ecx, dword [esp + 0x868]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x850]
xor ecx, esp
call fcn.004a998e
mov esp, ebp
pop ebp
ret