Function at 0x1000252d
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
sub esp, 0x458
lea ebp, [esp - 4]
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp + 0x458], eax
push 0x14
mov eax, 0x10010054
call fcn.100088ae
mov eax, dword [ebp + 0x464]
mov ebx, dword [ebp + 0x468]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x470]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x474]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10016178]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x18], esi
je 0x10002773
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
jne 0x10002773
push 3
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.100083a0
mov edi, 0x100
push edi
lea eax, [ebp + 0x358]
push esi
push eax
call fcn.100083a0
push edi
lea eax, [ebp + 0x54]
push esi
push eax
call fcn.100083a0
push edi
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.100083a0
lea eax, [ebp + 0x154]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x358]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.10008b88
add esp, 0x44
push 0x104
lea eax, [ebp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xf
pop edi
push esi
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x50], edi
call fcn.10001f19
push esi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], esi
mov dword [ebp + 0x34], edi
call fcn.10001f19
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.10008090
test eax, eax
pop ecx
mov edi, 0x1001141c
jbe 0x1000264f
lea eax, [ebp + 0x358]
push eax
call fcn.10008090
test eax, eax
pop ecx
jbe 0x1000264f
push ebx
lea ecx, [ebp + 0x1c]
call fcn.100023e8
jmp 0x10002670
lea eax, [ebp + 0x254]
push eax
lea ecx, [ebp + 0x1c]
call fcn.100023e8
push edi
lea ecx, [ebp + 0x1c]
call fcn.100023cb
push ebx
lea ecx, [ebp + 0x1c]
call fcn.100023cb
lea eax, [ebp + 0x254]
push eax
lea ecx, [ebp + 0x38]
call fcn.100023e8
push edi
lea ecx, [ebp + 0x38]
call fcn.100023cb
push dword [ebp - 0x20]
lea ecx, [ebp + 0x38]
call fcn.100023cb
push dword [ebp - 0x1c]
call fcn.10001438
pop ecx
push eax
lea ecx, [ebp + 0x38]
call fcn.100023cb
push dword [ebp - 0x10]
lea ecx, [ebp + 0x38]
call fcn.100023cb
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x100026bc
lea eax, [ebp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push 0x80
push 3
push esi
push 1
mov ebx, SysReAllocString
push ebx
push eax
call edi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea ecx, [ebp]
mov dword [ebp + 0x18], 0xf
call fcn.10001f19
cmp dword [ebp - 0x10], 0xffffffff
je 0x1000273d
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x10002702
lea eax, [ebp + 0x20]
push esi
push 0x80
push 3
push esi
push 1
push ebx
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x10002727
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x10002733
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
mov eax, dword [0x10016178]
cmp eax, esi
je 0x1000274d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
push 1
lea ecx, [ebp]
call fcn.10001f56
push esi
push 1
lea ecx, [ebp + 0x1c]
call fcn.10001f56
push esi
push 1
lea ecx, [ebp + 0x38]
call fcn.10001f56
mov eax, dword [ebp - 0x18]
jmp 0x10002775
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x458]
xor ecx, ebp
call fcn.100082f8
add ebp, 0x45c
leave
ret