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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x545486
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 [0x5991d0], ebx
call edi
mov esi, dword [esp + 0x528]
mov dword [0x5991d8], eax
cmp esi, ebx
je 0x49f77d
cmp word [esi], bx
je 0x49f77d
cmp dword [esp + 0x52c], ebx
je 0x49f77d
mov eax, dword [esp + 0x530]
cmp eax, ebx
je 0x49f77d
mov eax, dword [eax]
cmp eax, ebx
je 0x49f77d
cmp dword [0x5991dc], ebx
jne 0x49ee63
mov dword [0x5991d0], 2
mov dword [0x5991d4], 0x1430
jmp 0x49f791
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.004bff10
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
mov dword [esp + 0x24], ebp
jne 0x49eeca
call edi
cmp eax, 2
je 0x49f583
push ebx
push 0x60
push 1
push 7
push 0x80
push 0x120089
push esi
call fcn.004bff10
add esp, 0x1c
cmp eax, ebp
mov dword [esp + 0x24], eax
je 0x49f58d
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.0049f7c0
add esp, 8
test eax, eax
je 0x49f5b1
lea ecx, [esp + 0xc0]
test ecx, ecx
je 0x49f5d5
push 0x10
lea edx, [esp + 0xc4]
push 0x57b748
push edx
call fcn.0042ee60
add esp, 0xc
test eax, eax
jne 0x49f5d5
test byte [esp + 0xf2], 1
je 0x49f5d5
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.00495480
mov eax, dword [esp + 0x34]
add esp, 0x14
cmp eax, ebx
jne 0x49f5f9
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.0051fff0
lea eax, [esp + 0x100]
lea ecx, [esp + 0xc0]
push eax
push ecx
push ebp
mov dword [esp + 0x52c], ebx
call fcn.0049fa30
add esp, 0xc
test eax, eax
je 0x49f61d
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.0049bdc0
add esp, 8
test eax, eax
je 0x49f641
lea eax, [esp + 0x80]
lea ecx, [esp + 0x100]
push eax
lea edx, [esp + 0xc4]
push ecx
push edx
push ebp
call fcn.0049fcb0
add esp, 0x10
test eax, eax
je 0x49f665
cmp word [esp + 0x8a], bx
jne 0x49f689
lea ecx, [esp + 0x18]
call fcn.0051fff0
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.0049ff00
add esp, 0x18
test eax, eax
je 0x49f6ad
mov edx, dword [esp + 0x70]
xor ecx, ecx
mov si, word [edx + 0xc]
cmp si, bx
jbe 0x49f0bf
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 0x49f0b9
mov eax, dword [eax]
cmp eax, 1
jb 0x49f6ce
cmp eax, 4
ja 0x49f6ce
inc ecx
cmp cx, si
jb 0x49f091
mov ecx, dword [esp + 0x134]
push ecx
call fcn.004c2d10
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x7c], esi
je 0x49f6ef
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.004aabc0
add esp, 0x14
test eax, eax
je 0x49f710
mov eax, dword [esp + 0xa8]
cmp eax, ebx
je 0x49f731
mov edi, dword [esp + 0xac]
cmp eax, 1
jne 0x49f151
mov edi, dword [esp + 0xb0]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [0x57b744]
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 0x49f18e
mov eax, esi
xor edx, edx
div edi
test edx, edx
je 0x49f19a
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], ecx
mov esi, edi
mov ebp, ecx
push esi
call fcn.0052644a
mov ebx, eax
push ebp
mov dword [esp + 0x30], ebx
call fcn.0052644a
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 0x49f248
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.004bf5a0
add esp, 0x18
test eax, eax
je 0x49f4c8
cmp esi, dword [esp + 0x64]
jne 0x49f4de
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 0x49f2ca
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 0x49f354
jb 0x49f2ec
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xa0]
cmp ecx, eax
jae 0x49f354
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.004af970
add esp, 0x14
test eax, eax
je 0x49f489
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 0x49f4b2
jmp 0x49f3aa
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0x58]
cmp ecx, eax
mov dword [esp + 0x14], ecx
jbe 0x49f36d
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x88]
and eax, 0xffff
sub eax, esi
je 0x49f398
dec eax
je 0x49f388
dec eax
jne 0x49f3ae
lea esi, [ebx + 8]
jmp 0x49f39a
mov edx, ecx
lea esi, [ebx + 4]
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x49f3a5
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 0x49f3f8
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
xor esi, esi
cmp eax, esi
ja 0x49f3d9
cmp ecx, 0x1000
jbe 0x49f3e7
and ecx, 0xfff
xor eax, eax
mov edx, ecx
or edx, eax
je 0x49f3ed
mov dword [esp + 0x14], ecx
jmp 0x49f3fa
mov ecx, 0x1000
mov dword [esp + 0x14], ecx
jmp 0x49f3fa
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 0x49f41c
mov edx, dword [esp + 0x48]
add ebx, edx
add ebp, ecx
jmp 0x49f2a0
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x68]
add esi, edx
cmp eax, edx
mov dword [esp + 0x40], esi
jbe 0x49f507
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 0x49f532
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x20]
jmp 0x49f1e6
mov dword [0x5991d0], 0x1c
mov dword [0x5991d4], 0x150e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
mov dword [esp + 0x1c], 1
jmp 0x49f52e
mov dword [0x5991d0], 0x12
mov dword [0x5991d4], 0x1517
jmp 0x49f49d
mov dword [0x5991d0], 0xd
mov dword [0x5991d4], 0x14eb
jmp 0x49f4f2
mov dword [0x5991d0], 0xd
mov dword [0x5991d4], 0x14f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
mov dword [esp + 0x1c], 1
jmp 0x49f532
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.00526473
mov eax, dword [esp + 0x38]
push eax
call fcn.00526473
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
jne 0x49f555
mov dword [esp + 0x44], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x520], 0
call fcn.00520150
lea ecx, [esp + 0x10]
mov dword [esp + 0x520], 0xffffffff
call fcn.00520150
mov ebp, dword [esp + 0x24]
jmp 0x49f75e
mov eax, 1
jmp 0x49f79a
mov dword [0x5991d0], 3
mov dword [0x5991d4], 0x1452
call edi
mov ebp, dword [esp + 0x24]
mov dword [0x5991d8], eax
jmp 0x49f75e
mov dword [0x5991d0], 0xf
mov dword [0x5991d4], 0x145b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
jmp 0x49f75e
mov dword [0x5991d0], 0x22
mov dword [0x5991d4], 0x1462
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
jmp 0x49f75e
mov dword [0x5991d0], 0x31
mov dword [0x5991d4], 0x1468
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
jmp 0x49f75e
mov dword [0x5991d0], 0x14
mov dword [0x5991d4], 0x1474
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
jmp 0x49f74a
mov dword [0x5991d0], 0x1f
mov dword [0x5991d4], 0x147c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
jmp 0x49f74a
mov dword [0x5991d0], 0x14
mov dword [0x5991d4], 0x1482
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
jmp 0x49f74a
mov dword [0x5991d0], 1
mov dword [0x5991d4], 0x1489
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
jmp 0x49f74a
mov dword [0x5991d0], 0x14
mov dword [0x5991d4], 0x1493
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
jmp 0x49f739
mov dword [0x5991d0], 0x32
mov dword [0x5991d4], 0x1499
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
jmp 0x49f739
mov dword [0x5991d0], 0xc
mov dword [0x5991d4], 0x14a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
jmp 0x49f739
mov dword [0x5991d0], 0xb
mov dword [0x5991d4], 0x14b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5991d8], eax
jmp 0x49f739
mov dword [esp + 0x44], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x520], 0
call fcn.00520150
lea ecx, [esp + 0x10]
mov dword [esp + 0x520], 0xffffffff
call fcn.00520150
mov ecx, dword [esp + 0x530]
mov edx, dword [esp + 0x2c]
cmp ebp, 0xffffffff
mov dword [ecx], edx
je 0x49f777
push ebp
call dword [0x59a140]
mov eax, dword [esp + 0x44]
jmp 0x49f79a
mov dword [0x5991d0], 1
mov dword [0x5991d4], 0x142a
call edi
mov dword [0x5991d8], 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