Function at 0x100d8220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101148a0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1014e404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x30], ebx
call fcn.100d8710
mov eax, dword [edi]
mov esi, dword [ebp - 0x2c]
cmp esi, eax
je 0x100d8278
lea eax, [esi + 0x10]
mov ecx, edi
push eax
push ebx
call fcn.100d80a0
test al, al
mov eax, dword [edi]
je 0x100d827a
mov esi, eax
cmp esi, eax
je 0x100d8286
mov eax, dword [esi + 0x28]
jmp 0x100d841a
lea eax, [edi + 0x1c]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.10035180
lea eax, [edi + 0x7c]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.10034e50
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
mov byte [ebp - 4], 1
test esi, esi
je 0x100d83de
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100d83de
cmp dword [ebp - 0x3c], ebx
jne 0x100d82db
lea ecx, [ebp - 0x4c]
call fcn.100371b0
jmp 0x100d840e
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x100d8301
cmp dword [ebp - 0x38], 0x10
lea ecx, [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100d8301
call eax
mov ebx, eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.100371b0
test ebx, ebx
je 0x100d840e
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
test eax, eax
je 0x100d840e
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.100d8710
mov esi, dword [ebp - 0x2c]
cmp esi, dword [edi]
je 0x100d834a
lea eax, [esi + 0x10]
mov ecx, edi
push eax
push dword [ebp - 0x30]
call fcn.100d80a0
test al, al
je 0x100d8378
mov eax, dword [ebp - 0x30]
mov ecx, edi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x31]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x1012bbc0
call fcn.100d79e0
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.100d7bd0
mov esi, dword [ebp - 0x2c]
lea eax, [edi + 8]
mov dword [esi + 0x28], ebx
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
push edi
push ecx
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.100d8710
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
cmp esi, dword [ecx]
je 0x100d83ab
lea eax, [esi + 0x10]
push eax
push edi
call fcn.100d80a0
test al, al
je 0x100d83d5
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x31]
mov dword [ebp - 0x30], edi
push eax
lea eax, [ebp - 0x30]
push eax
push 0x1012bbc0
call fcn.100d79e0
mov ecx, dword [ebp - 0x2c]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x30]
push eax
call fcn.100d7bd0
mov esi, dword [ebp - 0x30]
mov dword [esi + 0x28], 0
jmp 0x100d8410
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x100d840e
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100d8404
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100d8438
push edx
push ecx
call fcn.100dfb49
add esp, 8
xor ebx, ebx
lea ecx, [ebp - 0x28]
call fcn.10037220
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100e0038
mov esp, ebp
pop ebp
ret 4
call fcn.100e9be9
int3