Function at 0x10046810
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010d33c
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x154], edx
cmp dword [eax + 0x14], ebx
je 0x10046e09
cmp dword [eax + 0x30], ebx
je 0x10046e09
lea esi, [eax + 0x20]
mov dword [ebp - 0x158], esi
lea edi, [ebx + 8]
cmp dword [esi + 0x10], ebx
je 0x10046893
cmp dword [esi + 0x14], edi
jb 0x10046881
mov eax, dword [esi]
jmp 0x10046883
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
jne 0x1004689c
push esi
call fcn.1000d470
add esp, 4
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 4], ebx
push ebx
xor eax, eax
mov esi, 7
push 0x101134e8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
call fcn.1000abb0
mov byte [ebp - 4], 1
xor ecx, ecx
push 0xd
mov word [ebp - 0x68], cx
push str.UCBrowser.exe
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
call fcn.1000abb0
lea edx, [ebp - 0x68]
push edx
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 2
call fcn.100166c0
add esp, 4
mov byte [ebp - 0x149], al
cmp dword [ebp - 0x54], edi
jb 0x1004691f
mov eax, dword [ebp - 0x68]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
cmp dword [ebp - 0x38], edi
jb 0x1004693f
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10065453
add esp, 4
cmp byte [ebp - 0x149], bl
je 0x1004695c
cmp byte [ebp + 0x10], bl
je 0x1004695c
lea esi, [ebp - 0x174]
call fcn.1001b690
jmp 0x10046e09
push 0xd
xor eax, eax
push str.UCBrowser.exe
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
call fcn.1000abb0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x160], esp
mov byte [ebp - 4], 3
push ebx
xor edx, edx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push 0x101134e8
mov word [ecx], dx
call fcn.1000abb0
lea esi, [ebp - 0x4c]
call fcn.1004e6b0
mov byte [ebp - 4], bl
mov byte [ebp - 0x160], al
cmp dword [ebp - 0x38], edi
jb 0x100469be
mov eax, dword [ebp - 0x4c]
push eax
call fcn.10065453
add esp, 4
lea esi, [ebp - 0x110]
call fcn.1004c850
mov dword [ebp - 0x164], eax
lea esi, [ebp - 0xf4]
mov byte [ebp - 4], 4
call fcn.1004c8e0
mov ecx, eax
mov eax, dword [ebp - 0x15c]
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.100103b0
push 0x1012329c
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov byte [ebp - 4], 6
call fcn.100102a0
add esp, 0xc
mov edx, dword [ebp - 0x164]
push edx
push eax
lea eax, [ebp - 0xd8]
push eax
mov byte [ebp - 4], 7
call fcn.10010440
add esp, 0xc
cmp dword [ebp - 0x38], edi
jb 0x10046a34
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.10065453
add esp, 4
mov esi, 7
xor edx, edx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
cmp dword [ebp - 0x54], edi
jb 0x10046a56
mov eax, dword [ebp - 0x68]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
cmp dword [ebp - 0xe0], edi
jb 0x10046a79
mov edx, dword [ebp - 0xf4]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xe4], ebx
mov word [ebp - 0xf4], ax
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0xfc], edi
jb 0x10046aa9
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.10065453
add esp, 4
mov dword [ebp - 0xfc], esi
xor edx, edx
lea esi, [ebp - 0x30]
mov dword [ebp - 0x100], ebx
mov word [ebp - 0x110], dx
call fcn.1004d060
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, dword [ebp - 0x150]
lea edx, [ecx + 4]
mov byte [ebp - 4], 0xd
call fcn.1004d7e0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x1c], edi
jb 0x10046af9
mov edx, dword [ebp - 0x30]
push edx
call fcn.10065453
add esp, 4
lea esi, [ebp - 0xbc]
call fcn.1004d060
mov dword [ebp - 0x150], eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.1004c8e0
mov ecx, eax
mov eax, dword [ebp - 0x15c]
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 0xf
call fcn.100103b0
push 0x1012329c
push eax
lea eax, [ebp - 0x148]
push eax
mov byte [ebp - 4], 0x10
call fcn.100102a0
add esp, 0xc
push 0x10127478
push eax
lea ecx, [ebp - 0x12c]
push ecx
mov byte [ebp - 4], 0x11
call fcn.100102a0
add esp, 0xc
mov edx, dword [ebp - 0x150]
push edx
mov edx, dword [ebp - 0x158]
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.1004dca0
cmp dword [ebp - 0x118], edi
jb 0x10046b8e
mov eax, dword [ebp - 0x12c]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], ebx
mov word [ebp - 0x12c], cx
cmp dword [ebp - 0x134], edi
jb 0x10046bbf
mov edx, dword [ebp - 0x148]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x138], ebx
mov word [ebp - 0x148], ax
cmp dword [ebp - 0x70], edi
jb 0x10046be8
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], dx
cmp dword [ebp - 0x1c], edi
jb 0x10046c08
mov eax, dword [ebp - 0x30]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
cmp dword [ebp - 0xa8], edi
jb 0x10046c2f
mov edx, dword [ebp - 0xbc]
push edx
call fcn.10065453
add esp, 4
lea esi, [ebp - 0xbc]
call fcn.1004d060
mov dword [ebp - 0x150], eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.1004d270
mov ecx, dword [ebp - 0x158]
push ecx
lea edx, [ebp - 0xd8]
push edx
mov edx, dword [ebp - 0x150]
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.1004e9a0
cmp dword [ebp - 0x1c], 0x10
jb 0x10046c7d
mov eax, dword [ebp - 0x30]
push eax
call fcn.10065453
add esp, 4
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0xa8], edi
jb 0x10046ca5
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.10065453
add esp, 4
mov ecx, dword [ebp - 0x154]
push 4
push str.u1
call fcn.10009ff0
lea edx, [ebp - 0xa0]
push edx
call fcn.10046fc0
add esp, 4
push 1
push 0x1012329c
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x15
call fcn.10009ff0
lea esi, [ebp - 0xbc]
call fcn.1004c760
mov dword [ebp - 0x154], eax
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 0x16
call fcn.1004ccd0
mov ecx, dword [ebp - 0x154]
push ecx
push eax
lea edx, [ebp - 0x30]
push edx
mov byte [ebp - 4], 0x17
call fcn.10010440
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x18
call fcn.1000a320
cmp dword [ebp - 0x1c], edi
jb 0x10046d38
mov eax, dword [ebp - 0x30]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x70], edi
jb 0x10046d5d
mov edx, dword [ebp - 0x84]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], ax
cmp dword [ebp - 0xa8], edi
jb 0x10046d87
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.10065453
add esp, 4
mov edx, dword [ebp - 0x160]
push edx
lea edi, [ebp - 0xa0]
call fcn.1004e7c0
mov edi, 8
cmp dword [ebp - 0x8c], edi
jb 0x10046db5
mov eax, dword [ebp - 0xa0]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], cx
cmp dword [ebp - 0xc4], edi
jb 0x10046de1
mov edx, dword [ebp - 0xd8]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov word [ebp - 0xd8], ax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], ebx
cmp eax, ebx
je 0x10046e09
push eax
call fcn.10065453
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret 0xc