Function at 0x1004a690
Capabilities:
Check if file exists
Get file size
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100ac9eb
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100de040]
xor eax, esp
push eax
lea eax, [esp + 0x488]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x498]
mov eax, dword [esp + 0x49c]
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], eax
test esi, esi
je 0x1004aa9d
cmp word [esi], 0
je 0x1004aa9d
mov eax, dword [ebx + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x20000000
neg eax
push 3
sbb eax, eax
push 0
and eax, 0xc0000000
push 1
add eax, 0xc0000000
push eax
push esi
call ebp
mov edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x490], 0
cmp edi, 0xffffffff
jne 0x1004a7a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1004a774
cmp eax, 0x20
je 0x1004a774
cmp eax, 0xa7
je 0x1004a774
cmp eax, 0x21
je 0x1004a774
cmp eax, 0x13
je 0x1004a774
test eax, eax
jle 0x1004a762
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
lea esi, [esp + 0x14]
call fcn.1000fee0
mov eax, edi
jmp 0x1004aaa2
push 0
push 0
push 3
push 0
push 1
push connect
push esi
call ebp
mov edi, eax
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
jne 0x1004a79b
call fcn.10002d30
jmp 0x1004aaa2
mov dword [ebx + 0x14], 1
jmp 0x1004a7b5
cmp dword [ebx + 0x14], 0
jne 0x1004a7b5
add ebx, 0x4c
push ebx
mov edx, esi
call fcn.1000a1d0
push 0x5c
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ebx, eax
test ebx, ebx
jne 0x1004a7d7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
jmp 0x1004aaa2
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x286]
push edx
mov word [esp + 0x288], cx
call fcn.10064e10
sub ebx, esi
add esp, 0xc
sar ebx, 1
add ebx, 2
push ebx
push esi
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
xor eax, eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x7e]
push edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], cx
call fcn.10064e10
mov ecx, dword [esp + 0x24]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push eax
push edi
lea esi, [esp + 0x5c]
call fcn.1004aad0
mov ebx, eax
xor esi, esi
cmp ebx, esi
jl 0x1004aa90
cmp ebx, 1
je 0x1004aa90
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1004aa42
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push esi
push 0x200
push edx
push eax
call fcn.100ab490
or eax, edx
jne 0x1004aa56
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], edi
push ecx
lea edi, [ebx + 0x70]
mov dword [esp + 0x18], 0xffffffff
call fcn.1004c050
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, edx
or eax, esi
mov eax, dword [esp + 0x60]
jne 0x1004a915
mov edi, ecx
or edi, eax
je 0x1004aa66
movzx edi, byte [esp + 0x63]
push edi
movzx edi, byte [esp + 0x66]
push edi
movzx edi, ah
push edi
movzx eax, al
push eax
movzx eax, byte [esp + 0x6f]
push eax
movzx eax, byte [esp + 0x72]
push eax
movzx eax, ch
push eax
movzx eax, word [esp + 0x76]
movzx ecx, cl
push ecx
push eax
movzx ecx, si
push ecx
push edx
lea edx, [esp + 0x2a8]
push edx
lea eax, [esp + 0xa4]
push str._s_08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x.vdi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
push 0
push 0
push 3
push 0
push 1
push connect
lea ecx, [esp + 0x8c]
push ecx
call ebp
mov edi, eax
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
jne 0x1004a9fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1004aa73
push 0x208
lea edx, [esp + 0x78]
push 0
push edx
call fcn.10064e10
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
add esp, 0xc
push 0x104
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
test edi, edi
jl 0x1004a764
cmp edi, 1
je 0x1004a764
push 0
push 0
push 3
push 0
push 1
push connect
lea ecx, [esp + 0x8c]
push ecx
call ebp
mov edi, eax
mov dword [esp + 0x14], edi
cmp eax, 0xffffffff
je 0x1004aa42
xor eax, eax
lea edx, [esp + 0x28]
push edx
push edi
lea esi, [esp + 0x5c]
mov ecx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call fcn.1004aad0
mov ebx, eax
test ebx, ebx
jl 0x1004aa90
xor esi, esi
jmp 0x1004a896
call fcn.10002d30
lea esi, [esp + 0x14]
mov edi, eax
call fcn.1000fee0
mov eax, edi
jmp 0x1004aaa2
lea esi, [esp + 0x14]
call fcn.1000fee0
mov eax, 0xe0034004
jmp 0x1004aaa2
lea esi, [esp + 0x14]
call fcn.1000fee0
xor eax, eax
jmp 0x1004aaa2
test eax, eax
jle 0x1004aa81
and eax, 0xffff
or eax, 0x80070000
lea esi, [esp + 0x14]
mov edi, eax
call fcn.1000fee0
mov eax, edi
jmp 0x1004aaa2
lea esi, [esp + 0x14]
call fcn.1000fee0
mov eax, ebx
jmp 0x1004aaa2
mov eax, 0x80070057
mov ecx, dword [esp + 0x488]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.10062448
add esp, 0x480
ret 8