Function at 0x420180
Capabilities:
Get common file path
Get file size
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x84a]
push ecx
mov dword [ebp - 0x14], 0
mov word [ebp - 0x84c], ax
call fcn.0052ea80
add esp, 0xc
push 0x400
lea edx, [ebp - 0x84c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push str._system32_
lea eax, [ebp - 0x84c]
push eax
call esi
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x84c]
push edx
call esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
je 0x420371
push ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ecx, ecx
push eax
lea edx, [ebp - 0x4c]
push 0x5642d0
push edx
mov word [ebp - 0x4c], cx
mov dword [ebp - 0x4a], ecx
mov dword [ebp - 0x46], ecx
mov dword [ebp - 0x42], ecx
mov dword [ebp - 0x3e], ecx
mov dword [ebp - 0x3a], ecx
mov dword [ebp - 0x36], ecx
mov dword [ebp - 0x32], ecx
mov dword [ebp - 0x2e], ecx
mov dword [ebp - 0x2a], ecx
mov word [ebp - 0x26], cx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
lea ecx, [ebp - 0x4c]
push ecx
push eax
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x420369
push edi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x420361
mov esi, dword [edi + 0x3c]
mov edx, dword [esi + edi + 0x78]
add esi, edi
push edx
push esi
call fcn.00420b80
lea ebx, [edi + eax]
mov eax, dword [ebx + 0x1c]
push eax
push esi
mov dword [ebp - 0x18], ebx
call fcn.00420b80
mov ecx, dword [ebx + 0x20]
push ecx
add eax, edi
push esi
mov dword [ebp - 8], eax
call fcn.00420b80
mov edx, dword [ebx + 0x24]
push edx
add eax, edi
push esi
mov dword [ebp - 0x24], eax
call fcn.00420b80
lea ecx, [edi + eax]
mov eax, dword [ebx + 0x14]
add esp, 0x20
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x42035b
mov eax, dword [ebp - 8]
cmp dword [eax + ebx*4], 0
je 0x420355
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x18]
xor eax, eax
mov dword [ebp - 0x20], edx
test edx, edx
je 0x420355
movzx edx, word [ecx + eax*2]
cmp edx, ebx
je 0x420308
inc eax
cmp eax, dword [ebp - 0x20]
jb 0x4202f8
jmp 0x420355
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
push edx
push esi
call fcn.00420b80
mov ecx, dword [ebp + 0xc]
add eax, edi
push ecx
push eax
call fcn.005407ab
add esp, 0x10
test eax, eax
jne 0x420352
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ebx*4]
push edx
push ecx
push esi
call fcn.00420b80
mov edx, dword [ebp + 0x10]
add esp, 8
add eax, edi
push eax
push edx
call fcn.005302f0
add esp, 0xc
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x10]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x4202e0
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret