Function at 0x4d4b50
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x60c582
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 0
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x3c], 1
mov eax, dword [ebp + 0x120]
push eax
push eax
call fcn.004c62b0
mov edi, dword [ebp + 0x120]
add esp, 8
lea eax, [esp + 0x28]
push eax
call fcn.0050ea10
lea edi, [ebp + 0x124]
push str.File
mov esi, edi
lea eax, [esp + 0x2c]
mov byte [esp + 0x40], 2
call fcn.0050ef90
push str.Identity
lea esi, [esp + 0x24]
lea eax, [esp + 0x2c]
call fcn.0050ef90
push str.Modify.Identity
lea esi, [esp + 0x20]
lea eax, [esp + 0x2c]
call fcn.0050ef90
push edi
mov ecx, str.udict1
call fcn.00422360
add esp, 4
test al, al
push str.udict0
mov ebx, 6
je 0x4d4c3b
mov eax, edi
call fcn.004037a0
push str.udict1
lea eax, [ebp + 0x14c]
call fcn.004037a0
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 3
lea eax, [esp + 0x48]
xor esi, esi
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call edx
lea edi, [ebp + 0x13c]
mov byte [esp + 0x3c], 3
call fcn.0040ab90
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4c96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
cmp eax, esi
jle 0x4d4cbb
lea ecx, [eax - 1]
cmp ecx, esi
jl 0x4d4ce7
cmp ecx, eax
jg 0x4d4ce7
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4d4cbb
push 0x5c
call fcn.0040af90
push 9
push str.udict.img
push edi
call fcn.0040aee0
mov eax, dword [edi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x4d4cf1
push 0x6244e0
xor ebx, ebx
mov eax, edi
call fcn.004037a0
jmp 0x4d4d31
push 0x80070057
call fcn.00403650
mov edi, dword [edi]
lea ecx, [esp + 0x44]
push edi
push ecx
call fcn.004d3a40
lea edx, [esp + 0x28]
push edx
call fcn.00438b80
mov bl, al
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4d2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4d4d39
mov dword [esp + 0x18], 1
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 3
lea eax, [esp + 0x48]
push eax
call edx
lea edi, [ebp + 0x140]
mov byte [esp + 0x3c], 4
call fcn.0040ab90
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4d7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x4d4dac
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4d4ce7
cmp ecx, eax
jg 0x4d4ce7
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4d4dac
push 0x5c
call fcn.0040af90
push 0xd
push str.udict.mod.img
push edi
call fcn.0040aee0
mov eax, dword [edi]
push eax
call esi
test eax, eax
jne 0x4d4dd2
push 0x6244e0
xor ebx, ebx
mov eax, edi
call fcn.004037a0
jmp 0x4d4e12
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004d3a40
lea edx, [esp + 0x24]
push edx
call fcn.00438b80
mov bl, al
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4e0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4d4e1a
mov dword [esp + 0x14], 1
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x44], esi
cmp dword [esp + 0x14], 0
mov byte [esp + 0x3c], 5
je 0x4d4e80
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
push eax
push str.qpy__u_udict.mod
lea edi, [esp + 0x4c]
call fcn.0040ac80
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x4c]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
add esp, 8
push esi
push ebp
call eax
lea eax, [ebp + 0x150]
push str.udict.mod
mov ebx, 9
call fcn.004037a0
jmp 0x4d4e8f
lea ecx, [ebp + 0x134]
mov eax, edi
mov edi, ecx
call fcn.0040ab90
cmp dword [esp + 0x18], 0
je 0x4d4eea
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
push eax
push str.qpy__u_
lea edi, [esp + 0x4c]
call fcn.0040ac80
mov eax, dword [ebp + 0x124]
mov ecx, dword [eax - 0xc]
lea ebx, [ebp + 0x124]
add esp, 8
push ecx
push eax
mov ecx, edi
push ecx
call fcn.0040aee0
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push esi
push ebp
call eax
lea edi, [ebp + 0x150]
mov eax, ebx
call fcn.0040ab90
jmp 0x4d4f0c
lea edi, [ebp + 0x130]
lea eax, [ebp + 0x13c]
call fcn.0040ab90
cmp dword [esp + 0x14], 0
jne 0x4d4f0c
mov dword [ebp + 0x158], 0x4d4fa0
add esi, 0xfffffff0
mov byte [esp + 0x3c], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4f2d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x40], 1
call fcn.0050ea80
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4f61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d4f89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4