Function at 0x4096d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fac5c
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5543c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x2d]
call fcn.00405880
push dword [edi + 4]
lea ecx, [edi + 0x4c0]
call dword [0x5273ec]
push 0
push 0
lea ecx, [edi + 0x4c0]
call dword [0x5273f4]
push 3
lea ecx, [edi + 0x4c0]
call dword [0x5273f0]
mov esi, dword [sym.RedAlert.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
add edi, 0x2c
push 0x501cc8
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x2c]
push 0x501cd4
mov dword [ecx + 0x504], eax
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x2c]
push str.browse
mov dword [ecx + 0x508], eax
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x2c]
push str.download
mov dword [ecx + 0x50c], eax
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x2c]
push str.pro_text
mov dword [ecx + 0x510], eax
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x2c]
push 0x501d18
mov dword [ecx + 0x514], eax
mov ecx, edi
call esi
mov edi, dword [ebp - 0x2c]
mov dword [edi + 0x518], eax
mov eax, dword [0x55646c]
test eax, eax
jne 0x4097f9
push 0x200
call fcn.004cd26e
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4097eb
push 0x200
push 0
push esi
call fcn.004cf400
add esp, 0xc
mov ecx, esi
call fcn.0040c630
jmp 0x4097ed
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x55646c], eax
mov ecx, eax
call fcn.0040d1a0
mov esi, eax
cmp esi, 0x3e8
jne 0x409889
cmp dword [edi + 0x504], 0
mov byte [edi + 0x584], 1
je 0x409954
lea eax, [ebp - 0xb0]
push eax
call fcn.0040b240
mov ecx, eax
call fcn.0040d3e0
add eax, 0x30
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x409843
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401cb0
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 2
jb 0x40985e
mov edx, dword [edx]
mov ecx, dword [edi + 0x504]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [ebp - 0x28]
call fcn.00403730
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
call fcn.00407ac0
jmp 0x409954
cmp esi, 0xffffffff
jne 0x4098de
call fcn.0040b240
mov ecx, eax
call fcn.0040d1b0
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4098de
call fcn.0040b240
mov ecx, eax
call fcn.0040d1b0
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409bcd
mov esi, dword [esi]
cmp dword [edi + 0x504], 0
je 0x409954
call fcn.0040b240
mov ecx, eax
call fcn.0040d1b0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x409954
nop dword [eax]
cmp esi, dword [ecx]
je 0x409910
add ecx, 0x84
cmp ecx, eax
jne 0x409900
jmp 0x409954
add ecx, 0xc
cmp dword [ecx + 0x14], 0x10
jb 0x40991b
mov ecx, dword [ecx]
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.00401cb0
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 3
jb 0x409939
mov edx, dword [edx]
mov ecx, dword [edi + 0x504]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00403730
mov ecx, dword [edi + 0x508]
test ecx, ecx
je 0x409ad6
mov eax, dword [ecx]
push 0
call dword [eax + 0xec]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
push 0x501d2c
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4099a4
mov ecx, 0x501d30
jmp 0x4099be
push 0x501d38
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov ecx, 0x501d3c
mov edx, 0x527204
cmove ecx, edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407ba0
cmp dword [ebp - 0x18], 0
je 0x409a95
push 5
push 0x501d44
lea ecx, [ebp - 0x28]
call fcn.0040b550
push 1
push 0x501cc4
lea ecx, [ebp - 0x28]
call fcn.0040b550
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.004018b0
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x409a08
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401cb0
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 6
jb 0x409a23
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040b550
lea ecx, [ebp - 0x60]
call fcn.00403730
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x409a6f
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409a65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409bd2
push ecx
push edx
call fcn.004cd29e
add esp, 8
push 1
push 0x501cc4
lea ecx, [ebp - 0x28]
call fcn.0040b550
mov ecx, dword [edi + 0x508]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x409ad6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409acc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409bd7
push ecx
push edx
call fcn.004cd29e
add esp, 8
mov eax, dword [0x55646c]
test eax, eax
jne 0x409b23
push 0x200
call fcn.004cd26e
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 7
test esi, esi
je 0x409b15
push 0x200
push 0
push esi
call fcn.004cf400
add esp, 0xc
mov ecx, esi
call fcn.0040c630
jmp 0x409b17
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x55646c], eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.0040d490
mov esi, eax
add edi, 0x538
cmp edi, esi
je 0x409b62
mov ecx, edi
call fcn.00403880
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x409b92
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409b88
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409bdc
push ecx
push edx
call fcn.004cd29e
add esp, 8
push 0xa
push str.config.ini
mov ecx, edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.00402880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cd2ac
mov esp, ebp
pop ebp
ret
call fcn.0040b540
call fcn.004d2fbf
call fcn.004d2fbf
call fcn.004d2fbf
int3