Function at 0x4a90d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5a45b2
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
lea eax, [esp + 0x80]
xor ebx, ebx
push eax
mov dword [esp + 0xfc], ebx
call fcn.004d1580
push edi
mov byte [esp + 0xfc], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a91e6
mov edi, dword [esp + 0x100]
lea ecx, [esp + 0x44]
push ecx
call fcn.004d1580
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0xfc], 2
push str.Default
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.004d1ab0
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x4a91c7
cmp ebp, dword [esp + 0x24]
je 0x4a91c7
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea edi, [esp + 0x18]
call fcn.004035d0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x104]
push esi
mov ecx, edi
call fcn.00468e80
cmp eax, ebx
jne 0x4a91c2
mov eax, esi
mov ebx, edi
call fcn.004ac5f0
xor ebx, ebx
jmp 0x4a9183
mov byte [eax + 4], bl
jmp 0x4a9183
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xfc], 1
call fcn.004d1650
lea edx, [esp + 0x80]
push edx
jmp 0x4a94b0
push str.Version
lea ecx, [esp + 0x84]
push ecx
call fcn.004d1cc0
cmp eax, ebx
jne 0x4a92ca
or ebp, 0xffffffff
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
lea edx, [esp + 0x44]
push edx
lea eax, [ebp + 2]
mov ecx, edi
mov byte [esp + 0xfc], 3
call fcn.004d0930
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x48]
call fcn.004d05c0
test eax, eax
je 0x4a9289
jmp 0x4a9250
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x104]
push edi
mov ecx, esi
call fcn.00468e80
cmp eax, ebx
jne 0x4a9274
mov eax, edi
mov ebx, esi
call fcn.004ac5f0
xor ebx, ebx
jmp 0x4a9277
mov byte [eax + 4], bl
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x48]
call fcn.004d05c0
test eax, eax
jne 0x4a9250
lea esi, [esp + 0x5c]
call fcn.004d04e0
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004d04e0
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0xfc], bl
call fcn.004d1650
mov dword [esp + 0xf8], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x4a94c9
lea ecx, [esp + 0x1c]
push ecx
push str.Custom
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.004d1ab0
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x4a9339
cmp ebp, dword [esp + 0x24]
je 0x4a9339
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea edi, [esp + 0x18]
call fcn.004035d0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x104]
push esi
mov ecx, edi
call fcn.00468e80
cmp eax, ebx
jne 0x4a9334
mov eax, esi
mov ebx, edi
call fcn.004ac5f0
xor ebx, ebx
jmp 0x4a92f5
mov byte [eax + 4], bl
jmp 0x4a92f5
lea eax, [esp + 0x1c]
push eax
push str.Default
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.004d1ab0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0xa
mov dword [esp + 0x40], ebx
mov byte [esp + 0xf8], 4
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x4a93e0
cmp ebp, dword [esp + 0x24]
je 0x4a93e0
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea edi, [esp + 0x18]
call fcn.004035d0
mov esi, dword [esp + 0x18]
push 4
push str.__D:
push esi
call fcn.0057c5c6
add esp, 0xc
test eax, eax
jne 0x4a9388
lea edi, [esi + 8]
push edi
lea ecx, [esp + 0x30]
call fcn.00468e80
cmp eax, ebx
jne 0x4a93db
mov eax, edi
lea ebx, [esp + 0x2c]
call fcn.00468ca0
xor ebx, ebx
jmp 0x4a9388
mov dword [eax + 4], ebx
jmp 0x4a9388
mov edi, dword [esp + 0x100]
lea edx, [esp + 0xb8]
push edx
call fcn.004d1580
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xfc], 5
push str.Default
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call fcn.004d1ab0
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x4a9479
cmp ebp, dword [esp + 0x24]
je 0x4a9479
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea edi, [esp + 0x18]
call fcn.004035d0
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x30]
call fcn.00468e80
test eax, eax
jne 0x4a9427
mov edi, dword [esp + 0x104]
push esi
mov ecx, edi
call fcn.00468e80
cmp eax, ebx
jne 0x4a9474
mov eax, esi
mov ebx, edi
call fcn.004ac5f0
xor ebx, ebx
jmp 0x4a9427
mov byte [eax + 4], bl
jmp 0x4a9427
lea edx, [esp + 0xb8]
push edx
mov byte [esp + 0xfc], 4
call fcn.004d1650
lea edi, [esp + 0x2c]
call fcn.004af2c0
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4a94a8
push eax
call fcn.0057876f
add esp, 4
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0xfc], bl
call fcn.004d1650
or ebp, 0xffffffff
lea eax, [esi - 0x10]
mov dword [esp + 0xf8], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4a94df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret 8