Function at 0x4911d3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5126bd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x26bc
call fcn.004d60f0
mov eax, dword [0x56a5a0]
xor eax, esp
mov dword [esp + 0x26b8], eax
push ebx
push esi
push edi
mov eax, dword [0x56a5a0]
xor eax, esp
push eax
lea eax, [esp + 0x26d0]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov word [esp + 0x24c0], ax
xor ebx, ebx
lea eax, [esp + 0x24c2]
push ebx
push eax
mov esi, ecx
call fcn.004ce6f0
add esp, 0xc
push 0x527fec
lea eax, [esp + 0x20]
push eax
call fcn.004025b6
mov dword [esp + 0x26d8], ebx
add esi, 0x78
push esi
lea eax, [esp + 0x18]
push eax
call fcn.004029d3
mov byte [esp + 0x26d8], 1
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x49147d
cmp ecx, eax
jg 0x49147d
movzx eax, word [edx + ecx*2]
push 0x5c
pop ecx
cmp cx, ax
jne 0x4912a5
mov esi, 0x52b784
mov eax, esi
call fcn.00402826
push eax
push esi
lea eax, [esp + 0x1c]
call fcn.0040cf64
mov edi, 0x52d4f8
lea eax, [esp + 0x18]
push edi
push eax
lea esi, [esp + 0x1c]
call fcn.00446303
mov byte [esp + 0x26e0], 2
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, eax
call fcn.0040a149
add esp, 0x10
mov byte [esp + 0x26d8], 4
lea ecx, [esp + 0x18]
call fcn.004028da
lea eax, [esp + 0x18]
push eax
call fcn.00408bd7
pop ecx
mov byte [esp + 0x26d8], 5
push dword [eax]
lea eax, [esp + 0x14]
push eax
call fcn.004022e5
mov byte [esp + 0x26d8], 7
lea ecx, [esp + 0x18]
call fcn.004028da
push 0x52c108
lea eax, [esp + 0x14]
call fcn.0040d65b
lea eax, [esp + 0x10]
call fcn.004707d9
push dword [esp + 0x10]
call dword [0x51a4b0]
test eax, eax
jne 0x491353
push str.ERROR_CHECK_BOOLEX:pathExe.FileExists__
push 0x212
push str..dlgoptiondlgoptpagesync.cpp
push 5
pop ecx
call fcn.0040ef48
jmp 0x491412
push dword [esp + 0x20]
lea eax, [esp + 0x20]
push str.__ChangeDir__s
push eax
call fcn.00402363
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x24c8]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, bx
jne 0x491376
push 0x44
pop esi
push esi
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.004ce6f0
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24dc]
push eax
push dword [esp + 0x34]
mov dword [esp + 0x5c], esi
call dword [0x51a344]
cmp eax, ebx
jne 0x4913cf
push str.ERROR_CHECK_BOOL:bRet
push 0x21e
jmp 0x491341
lea esi, [esp + 0x7c]
call fcn.0044a656
mov eax, esi
push eax
push ecx
mov dword [esp + 0x84], 0x14
call fcn.00446e6f
pop ecx
push eax
call fcn.0044700a
cmp eax, ebx
jge 0x491412
push eax
push str.ERROR_CHECK_COMEX_hr___x:_hr
push 0x225
push str..dlgoptiondlgoptpagesync.cpp
push 5
pop esi
call fcn.0040f52f
add esp, 0x10
mov byte [esp + 0x26d8], 4
lea eax, [esp + 0x10]
push eax
call fcn.004025f7
mov byte [esp + 0x26d8], 1
lea ecx, [esp + 0x20]
call fcn.004028da
mov byte [esp + 0x26d8], bl
lea ecx, [esp + 0x14]
call fcn.004028da
or dword [esp + 0x26d8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004028da
xor eax, eax
inc eax
mov ecx, dword [esp + 0x26d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x26b8]
xor ecx, esp
call fcn.004c9b4d
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402a11
int3