Function at 0x40d4b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4681a9
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x18c], edi
lea eax, [ebp - 0x188]
push eax
mov ecx, 0x4776c8
mov dword [ebp - 4], edi
call fcn.00401110
lea ecx, [ebp - 0x190]
push ecx
mov ecx, 0x4776c8
mov byte [ebp - 4], 1
call fcn.00401110
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d5ca
push esi
mov ecx, 0x4776c8
call fcn.00401110
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x190]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d55e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x188]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d584
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x11c], ecx
cmp eax, edi
jne 0x40d6f1
mov dword [ebp - 0x11c], edi
mov edx, dword [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x184]
call fcn.00446ce0
mov esi, eax
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x118]
add esp, 4
cmp eax, ecx
je 0x40d61d
push eax
call fcn.0044fac2
add esp, 4
test esi, esi
je 0x40d698
mov edx, dword [0x484034]
mov eax, dword [edx + 0xc]
mov ecx, 0x484034
call eax
add eax, 0x10
mov dword [ebp - 0x18c], eax
mov byte [ebp - 4], 3
xor esi, esi
movzx ecx, byte [ebp + esi - 0x12c]
push ecx
push str._02x
lea edi, [ebp - 0x18c]
call fcn.00428b20
mov edi, dword [ebp - 0x18c]
mov eax, dword [edi - 0xc]
add esp, 8
push eax
push edi
lea ebx, [ebp - 0x190]
call fcn.004249d0
inc esi
cmp esi, 0x10
jl 0x40d640
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d698
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x190]
mov esi, dword [ebp - 0x188]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40d761
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40d751
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d751
call fcn.00426710
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40d6e6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x188], ebx
jmp 0x40d761
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea edi, [ebp - 0x118]
lea ecx, [ebx + 1]
lea esi, [ebp - 0x11c]
call fcn.0042a330
mov edx, dword [ebp - 0x18c]
lea eax, [ebx + ebx + 2]
push eax
push edx
push eax
mov eax, dword [ebp - 0x11c]
push eax
call fcn.0044ec37
add esp, 0x10
cmp eax, 0x50
ja case.0x40d736.1
movzx ecx, byte [eax + 0x40d7b4]
jmp dword [ecx*4 + 0x40d7a4]
push 0x8007000e
call fcn.00401680
push 0x80070057
call fcn.00401680
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x188]
push ecx
call fcn.00401330
mov eax, dword [ebp - 0x188]
add eax, 0xfffffff0
call fcn.00426710
mov esi, dword [ebp - 0x194]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x190]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40d552
push 0x80004005
call fcn.00401680
nop
in eax, dx
aad 64
add byte [0x470040d7], bh
xlatb
inc eax
add byte [ecx + 0x40d7], bl
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3