Function at 0x1004bea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10108d06
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x10], 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 - 0xdc], ebx
xor ecx, ecx
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov dword [ebp - 4], ebx
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xd8], reloc.WS2_32.dll_accept
call fcn.1001c2c0
mov dword [ebp - 0xe0], eax
lea esi, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.1004d1e0
mov edi, eax
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.1001c350
push 0x1012329c
push eax
lea edx, [ebp - 0x80]
push edx
mov byte [ebp - 4], 3
call fcn.100102a0
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 4
call fcn.10010440
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 5
cmp dword [0x1013ba54], ebx
jne 0x1004bf92
push 0x138
call fcn.100656b5
add esp, 4
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x1004bf87
mov esi, eax
call fcn.10011610
jmp 0x1004bf89
xor eax, eax
mov byte [ebp - 4], 5
mov dword [0x1013ba54], eax
mov edx, dword [ebp - 0xe0]
push ebx
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, edi
lea esi, [ebp - 0x2c]
call fcn.10011fc0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.10009ca0
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x1004bfcd
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jb 0x1004bfef
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x6c], esi
jb 0x1004c00c
mov eax, dword [ebp - 0x80]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x88], esi
jb 0x1004c02f
mov edx, dword [ebp - 0x9c]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0xa4], esi
jb 0x1004c05b
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov byte [ebp - 4], bl
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
cmp dword [ebp - 0xc0], esi
jb 0x1004c08a
mov eax, dword [ebp - 0xd4]
push eax
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x54], ebx
jne 0x1004c405
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xe0], reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001c2c0
mov dword [ebp - 0xd8], eax
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.1004d1e0
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.1001c350
push 0x1012329c
push eax
lea ecx, [ebp - 0x80]
push ecx
mov byte [ebp - 4], 0xa
call fcn.100102a0
add esp, 0xc
push edi
push eax
lea edx, [ebp - 0x9c]
push edx
mov byte [ebp - 4], 0xb
call fcn.10010440
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 0xc
cmp dword [0x1013ba54], ebx
jne 0x1004c130
push 0x138
call fcn.100656b5
add esp, 4
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 0xd
cmp eax, ebx
je 0x1004c125
mov esi, eax
call fcn.10011610
jmp 0x1004c127
xor eax, eax
mov byte [ebp - 4], 0xc
mov dword [0x1013ba54], eax
mov edx, dword [ebp - 0xd8]
push ebx
lea eax, [ebp - 0xe0]
push eax
mov ecx, edi
lea esi, [ebp - 0xb8]
call fcn.10011fc0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xe
call fcn.10009ca0
mov esi, 8
cmp dword [ebp - 0xa4], esi
jb 0x1004c174
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
cmp dword [ebp - 0x88], esi
jb 0x1004c1a5
mov eax, dword [ebp - 0x9c]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
cmp dword [ebp - 0x6c], esi
jb 0x1004c1cb
mov edx, dword [ebp - 0x80]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x18], esi
jb 0x1004c1e8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], esi
jb 0x1004c205
mov eax, dword [ebp - 0x48]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], bl
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0xc0], esi
jb 0x1004c22b
mov edx, dword [ebp - 0xd4]
push edx
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x54], ebx
jne 0x1004c405
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xe0], reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001c2c0
mov dword [ebp - 0xd8], eax
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.1004d1e0
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.1001c380
push 0x1012329c
push eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 0x11
call fcn.100102a0
add esp, 0xc
push edi
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov byte [ebp - 4], 0x12
call fcn.10010440
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 0x13
cmp dword [0x1013ba54], ebx
jne 0x1004c2d1
push 0x138
call fcn.100656b5
add esp, 4
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 0x14
cmp eax, ebx
je 0x1004c2c6
mov esi, eax
call fcn.10011610
jmp 0x1004c2c8
xor eax, eax
mov byte [ebp - 4], 0x13
mov dword [0x1013ba54], eax
push ebx
lea edx, [ebp - 0xe0]
push edx
mov edx, dword [ebp - 0xd8]
mov ecx, edi
lea esi, [ebp - 0xb8]
call fcn.10011fc0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x15
call fcn.10009ca0
mov edi, 8
cmp dword [ebp - 0xa4], edi
jb 0x1004c315
mov eax, dword [ebp - 0xb8]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x88], edi
jb 0x1004c346
mov edx, dword [ebp - 0x9c]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0x6c], edi
jb 0x1004c36c
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x18], edi
jb 0x1004c389
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], edi
jb 0x1004c3a6
mov edx, dword [ebp - 0x48]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0xc0], edi
jb 0x1004c3cc
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x54], ebx
jne 0x1004c405
mov esi, dword [ebp - 0xe4]
push ebx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x101134e8
mov ecx, esi
mov word [esi], dx
call fcn.1000abb0
cmp dword [ebp - 0x50], edi
jb 0x1004c566
mov eax, dword [ebp - 0x64]
push eax
jmp 0x1004c55e
push 0x1012329c
lea ecx, [ebp - 0x64]
push ecx
mov edi, 1
call fcn.1000c5b0
push eax
push ebx
lea edx, [ebp - 0xd4]
push edx
lea ecx, [ebp - 0x64]
call fcn.1000c0d0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x16
call fcn.10009ca0
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0xc0], esi
jb 0x1004c455
mov eax, dword [ebp - 0xd4]
push eax
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x54], ebx
je 0x1004c4a8
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], esi
jae 0x1004c465
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x1004c4a8
push 0xffffffffffffffff
xor ecx, ecx
push ebx
lea edx, [ebp - 0x64]
mov word [ebp - 0x2c], cx
mov edi, 7
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.1000b050
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xdc], 2
jmp 0x1004c4df
push ebx
xor eax, eax
push 0x101134e8
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.1000abb0
mov dword [ebp - 4], 0x18
lea eax, [ebp - 0x48]
mov dword [ebp - 0xdc], 4
mov edi, 7
mov esi, dword [ebp - 0xe4]
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov word [esi], cx
push eax
mov ecx, esi
call fcn.10009ca0
mov eax, dword [ebp - 0xdc]
or eax, 1
test al, 4
je 0x1004c532
and eax, 0xfffffffb
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0xdc], eax
jb 0x1004c526
mov edx, dword [ebp - 0x48]
push edx
call fcn.10065453
mov eax, dword [ebp - 0xdc]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
test al, 2
je 0x1004c554
cmp dword [ebp - 0x18], 8
jb 0x1004c548
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], 8
jb 0x1004c566
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10065453
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret