Function at 0x49a300
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x53f866
push eax
mov dword fs:[0], esp
sub esp, 0x508
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov dword [0x593050], ebx
call edi
mov esi, dword [esp + 0x528]
mov dword [0x593058], eax
cmp esi, ebx
je 0x49acad
cmp word [esi], bx
je 0x49acad
cmp dword [esp + 0x52c], ebx
je 0x49acad
mov eax, dword [esp + 0x530]
cmp eax, ebx
je 0x49acad
mov eax, dword [eax]
cmp eax, ebx
je 0x49acad
cmp dword [0x59305c], ebx
jne 0x49a393
mov dword [0x593050], 2
mov dword [0x593054], 0x1425
jmp 0x49acc1
push ebx
push 0x60
push 1
push 7
push 0x80
push 0x120089
push esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x84], eax
call fcn.004bb100
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
mov dword [esp + 0x24], ebp
jne 0x49a3fa
call edi
cmp eax, 2
je 0x49aab3
push ebx
push 0x60
push 1
push 7
push 0x80
push 0x120089
push esi
call fcn.004bb100
add esp, 0x1c
cmp eax, ebp
mov dword [esp + 0x24], eax
je 0x49aabd
mov ebp, eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xc1]
mov byte [esp + 0xc0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc0]
push eax
push ebp
call fcn.0049acf0
add esp, 8
test eax, eax
je 0x49aae1
lea ecx, [esp + 0xc0]
test ecx, ecx
je 0x49ab05
push 0x10
lea edx, [esp + 0xc4]
push 0x575608
push edx
call fcn.0042ecc0
add esp, 0xc
test eax, eax
jne 0x49ab05
test byte [esp + 0xf2], 1
je 0x49ab05
mov edx, dword [esp + 0xe0]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ebx
push ecx
push ebx
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], ebx
call fcn.004909f0
mov eax, dword [esp + 0x34]
add esp, 0x14
cmp eax, ebx
jne 0x49ab29
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x104]
mov dword [esp + 0x100], ebx
rep stosd dword es:[edi], eax
mov ecx, 0xd
lea edi, [esp + 0x84]
mov dword [esp + 0x80], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
call fcn.0051a5b0
lea eax, [esp + 0x100]
lea ecx, [esp + 0xc0]
push eax
push ecx
push ebp
mov dword [esp + 0x52c], ebx
call fcn.0049af60
add esp, 0xc
test eax, eax
je 0x49ab4d
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 0x191]
mov byte [esp + 0x190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x190]
push edx
push ebp
stosb byte es:[edi], al
call fcn.00497320
add esp, 8
test eax, eax
je 0x49ab71
lea eax, [esp + 0x80]
lea ecx, [esp + 0x100]
push eax
lea edx, [esp + 0xc4]
push ecx
push edx
push ebp
call fcn.0049b1e0
add esp, 0x10
test eax, eax
je 0x49ab95
cmp word [esp + 0x8a], bx
jne 0x49abb9
lea ecx, [esp + 0x18]
call fcn.0051a5b0
lea eax, [esp + 0x50]
lea ecx, [esp + 0x70]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x108]
push edx
lea ecx, [esp + 0xcc]
push eax
push ecx
push ebp
mov byte [esp + 0x538], 1
mov dword [esp + 0x88], ebx
mov dword [esp + 0x68], ebx
call fcn.0049b430
add esp, 0x18
test eax, eax
je 0x49abdd
mov edx, dword [esp + 0x70]
xor ecx, ecx
mov si, word [edx + 0xc]
cmp si, bx
jbe 0x49a5ef
mov edx, dword [esp + 0x50]
mov eax, ecx
and eax, 0xffff
lea eax, [eax + eax*4]
test byte [edx + eax*8 + 8], 1
lea eax, [edx + eax*8]
je 0x49a5e9
mov eax, dword [eax]
cmp eax, 1
jb 0x49abfe
cmp eax, 4
ja 0x49abfe
inc ecx
cmp cx, si
jb 0x49a5c1
mov ecx, dword [esp + 0x134]
push ecx
call fcn.004bded0
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x7c], esi
je 0x49ac1f
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x151]
mov byte [esp + 0x150], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x54]
lea ecx, [esp + 0x74]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x154]
push 0x40
push eax
lea edx, [esp + 0x10c]
push ecx
push edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x88], ebx
call fcn.004a5f60
add esp, 0x14
test eax, eax
je 0x49ac40
mov eax, dword [esp + 0xa8]
cmp eax, ebx
je 0x49ac61
mov edi, dword [esp + 0xac]
cmp eax, 1
jne 0x49a681
mov edi, dword [esp + 0xb0]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [0x575604]
mov ecx, eax
mov eax, esi
xor edx, edx
div edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], esi
mov ebp, eax
mov eax, dword [esp + 0xa8]
imul ebp, ecx
cmp eax, 1
mov dword [esp + 0x20], ebp
je 0x49a6be
mov eax, esi
xor edx, edx
div edi
test edx, edx
je 0x49a6ca
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], ecx
mov esi, edi
mov ebp, ecx
push esi
call fcn.00520a0a
mov ebx, eax
push ebp
mov dword [esp + 0x30], ebx
call fcn.00520a0a
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x34], eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
xor edx, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], eax
mov eax, esi
div edi
mov dword [esp + 0x78], eax
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
mov ebp, dword [esp + 0x34]
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0xa8]
lea edx, [edi + ecx]
cmp edx, eax
jb 0x49a778
mov edi, eax
mov eax, dword [esp + 0xb0]
sub edi, ecx
mov dword [esp + 0x38], 1
lea esi, [edi - 1]
imul esi, dword [esp + 0xac]
add esi, eax
mov ecx, dword [esp + 0x124]
lea edx, [esp + 0xb8]
xor eax, eax
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0xc0], eax
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x2c]
push eax
push esi
push ebx
push ecx
call fcn.004ba790
add esp, 0x18
test eax, eax
je 0x49a9f8
cmp esi, dword [esp + 0x64]
jne 0x49aa0e
mov dword [esp + 0x60], edi
mov dword [esp + 0x4c], 0
xor esi, esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], edx
jne 0x49a7fa
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0xa4]
xor eax, eax
cmp eax, ecx
mov dword [esp + 0x14], esi
ja 0x49a884
jb 0x49a81c
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xa0]
cmp ecx, eax
jae 0x49a884
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x5c]
lea eax, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x8c]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x80], esi
mov dword [esp + 0x70], esi
call fcn.004aad10
add esp, 0x14
test eax, eax
je 0x49a9b9
lea edx, [esp + 0x14]
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x64]
push ebp
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x68]
push edx
lea edx, [esp + 0x168]
push edx
call dword [eax + 0x14]
cmp eax, esi
je 0x49a9e2
jmp 0x49a8da
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0x58]
cmp ecx, eax
mov dword [esp + 0x14], ecx
jbe 0x49a89d
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x88]
and eax, 0xffff
sub eax, esi
je 0x49a8c8
dec eax
je 0x49a8b8
dec eax
jne 0x49a8de
lea esi, [ebx + 8]
jmp 0x49a8ca
mov edx, ecx
lea esi, [ebx + 4]
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x49a8d5
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x30]
cmp eax, edx
jne 0x49a928
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
xor esi, esi
cmp eax, esi
ja 0x49a909
cmp ecx, 0x1000
jbe 0x49a917
and ecx, 0xfff
xor eax, eax
mov edx, ecx
or edx, eax
je 0x49a91d
mov dword [esp + 0x14], ecx
jmp 0x49a92a
mov ecx, 0x1000
mov dword [esp + 0x14], ecx
jmp 0x49a92a
xor esi, esi
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x60]
add edx, ecx
dec eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x60], eax
je 0x49a94c
mov edx, dword [esp + 0x48]
add ebx, edx
add ebp, ecx
jmp 0x49a7d0
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x68]
add esi, edx
cmp eax, edx
mov dword [esp + 0x40], esi
jbe 0x49aa37
mov esi, dword [esp + 0x34]
mov ecx, edx
mov edx, dword [esp + 0x52c]
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x2c]
sub eax, ecx
add edi, ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x38]
add edx, ecx
mov dword [esp + 0x2c], edi
test eax, eax
mov dword [esp + 0x52c], edx
jne 0x49aa62
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x20]
jmp 0x49a716
mov dword [0x593050], 0x1c
mov dword [0x593054], 0x1503
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
mov dword [esp + 0x1c], 1
jmp 0x49aa5e
mov dword [0x593050], 0x12
mov dword [0x593054], 0x150c
jmp 0x49a9cd
mov dword [0x593050], 0xd
mov dword [0x593054], 0x14e0
jmp 0x49aa22
mov dword [0x593050], 0xd
mov dword [0x593054], 0x14e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
mov dword [esp + 0x1c], 1
jmp 0x49aa62
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x52c]
mov ecx, eax
mov dword [esp + 0x1c], 0
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x28]
push ebx
call fcn.00520a33
mov eax, dword [esp + 0x38]
push eax
call fcn.00520a33
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
jne 0x49aa85
mov dword [esp + 0x44], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x520], 0
call fcn.0051a710
lea ecx, [esp + 0x10]
mov dword [esp + 0x520], 0xffffffff
call fcn.0051a710
mov ebp, dword [esp + 0x24]
jmp 0x49ac8e
mov eax, 1
jmp 0x49acca
mov dword [0x593050], 3
mov dword [0x593054], 0x1447
call edi
mov ebp, dword [esp + 0x24]
mov dword [0x593058], eax
jmp 0x49ac8e
mov dword [0x593050], 0xf
mov dword [0x593054], 0x1450
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49ac8e
mov dword [0x593050], 0x22
mov dword [0x593054], 0x1457
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49ac8e
mov dword [0x593050], 0x31
mov dword [0x593054], 0x145d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49ac8e
mov dword [0x593050], 0x14
mov dword [0x593054], 0x1469
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49ac7a
mov dword [0x593050], 0x1f
mov dword [0x593054], 0x1471
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49ac7a
mov dword [0x593050], 0x14
mov dword [0x593054], 0x1477
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49ac7a
mov dword [0x593050], 1
mov dword [0x593054], 0x147e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49ac7a
mov dword [0x593050], 0x14
mov dword [0x593054], 0x1488
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49ac69
mov dword [0x593050], 0x32
mov dword [0x593054], 0x148e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49ac69
mov dword [0x593050], 0xc
mov dword [0x593054], 0x149c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49ac69
mov dword [0x593050], 0xb
mov dword [0x593054], 0x14a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49ac69
mov dword [esp + 0x44], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x520], 0
call fcn.0051a710
lea ecx, [esp + 0x10]
mov dword [esp + 0x520], 0xffffffff
call fcn.0051a710
mov ecx, dword [esp + 0x530]
mov edx, dword [esp + 0x2c]
cmp ebp, 0xffffffff
mov dword [ecx], edx
je 0x49aca7
push ebp
call dword [0x593fb8]
mov eax, dword [esp + 0x44]
jmp 0x49acca
mov dword [0x593050], 1
mov dword [0x593054], 0x141f
call edi
mov dword [0x593058], eax
xor eax, eax
mov ecx, dword [esp + 0x518]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x514
ret