Function at 0x50efac
Capabilities:
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x61], cl
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
call fcn.00403e40
xor eax, eax
push ebp
push 0x50f567
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40cd94]
call fcn.00402e3c
mov dword [ebp - 0x48], eax
mov dl, 1
mov eax, dword [0x40cd94]
call fcn.00402e3c
mov dword [ebp - 0x4c], eax
mov dl, 1
mov eax, dword [0x40cd94]
call fcn.00402e3c
mov dword [ebp - 0x50], eax
mov dl, 1
mov eax, dword [0x40cd94]
call fcn.00402e3c
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x58], 0xffffffff
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x50f537
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x20
mov eax, dword [ebp + 8]
call fcn.00407570
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jge 0x50f057
call fcn.00403508
jmp 0x50f541
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x50f07d
call fcn.00403508
jmp 0x50f541
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x50f0a1
call fcn.00403508
jmp 0x50f541
xor eax, eax
push ebp
push 0x50f421
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x50f0de
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403508
jmp 0x50f541
mov eax, dword [ebp - 4]
cmp dword [eax + 0x74], 0
jne 0x50f0f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403508
jmp 0x50f541
mov eax, dword [ebp - 4]
add eax, 0x78
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
shl eax, 3
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
cmp dword [eax + edx*8], 0
je 0x50f290
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
cmp dword [eax + edx*8 + 4], 0
je 0x50f290
push ebp
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + edx*8]
call fcn.0050ef0c
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x50f290
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x50f27c
push ebp
mov eax, dword [ebp - 0x30]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 0xc]
call fcn.0050ef0c
pop ecx
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x38]
call fcn.00407c10
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x34]
call fcn.00406fa4
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
call fcn.0050ee2c
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x294]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x50]
inc eax
jne 0x50f279
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x218]
mov eax, dword [eax + 0x134]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
call fcn.0044a264
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x40], 0xffffffff
je 0x50f25f
mov edx, 0x23
mov eax, dword [ebp - 0x44]
call fcn.00449514
mov edx, 0x23
mov eax, dword [ebp - 0x44]
call fcn.00449548
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x288]
mov edx, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x50]
inc eax
jne 0x50f279
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x288]
mov edx, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x290]
mov edx, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x50f279
mov edx, 0x25
mov eax, dword [ebp - 0x44]
call fcn.00449514
mov edx, 0x25
mov eax, dword [ebp - 0x44]
call fcn.00449548
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x20]
cmp dword [edx + eax*4 + 0xc], 0
jne 0x50f166
mov dword [ebp - 0x28], 0xd
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
cmp dword [eax + edx*8], 0
je 0x50f417
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
cmp dword [eax + edx*8 + 4], 0
je 0x50f417
push ebp
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + edx*8]
call fcn.0050ef0c
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x50f417
jmp 0x50f40a
mov eax, dword [ebp - 0x24]
test byte [eax], 1
jne 0x50f2fa
push ebp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x34]
call fcn.0050ef0c
pop ecx
mov dword [ebp - 0x38], eax
jmp 0x50f30a
push ebp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
call fcn.0050ef0c
pop ecx
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x38]
call fcn.00407c10
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x34]
call fcn.00406fa4
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
call fcn.0050ee2c
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x294]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x50]
inc eax
jne 0x50f406
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x218]
mov eax, dword [eax + 0x134]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
call fcn.0044a264
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x40], 0xffffffff
je 0x50f3ec
mov edx, 0x24
mov eax, dword [ebp - 0x44]
call fcn.00449514
mov edx, 0x24
mov eax, dword [ebp - 0x44]
call fcn.00449548
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28c]
mov edx, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x50]
inc eax
jne 0x50f406
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28c]
mov edx, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x290]
mov edx, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x50f406
mov edx, 0x26
mov eax, dword [ebp - 0x44]
call fcn.00449514
mov edx, 0x26
mov eax, dword [ebp - 0x44]
call fcn.00449548
add dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 0
jne 0x50f2da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50f42b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f541
cmp dword [ebp - 0xc], 0
je 0x50f447
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_UnmapViewOfFile
cmp dword [ebp - 0x5c], 0
je 0x50f456
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0x58], 0xffffffff
je 0x50f464
mov eax, dword [ebp - 0x58]
call fcn.00407638
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x50f4ad
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x68]
push eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.0050efac
inc dword [ebp - 0x2c]
dec dword [ebp - 0x60]
jne 0x50f47c
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x50f4f6
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x68]
push eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.0050efac
inc dword [ebp - 0x2c]
dec dword [ebp - 0x60]
jne 0x50f4c5
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebp - 0x48]
call fcn.00402e64
mov eax, dword [ebp - 0x4c]
call fcn.00402e64
mov eax, dword [ebp - 0x50]
call fcn.00402e64
mov eax, dword [ebp - 0x54]
call fcn.00402e64
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f56e
lea eax, [ebp - 0x68]
call fcn.00403a10
lea eax, [ebp - 0x34]
call fcn.00403a10
lea eax, [ebp + 8]
call fcn.00403a10
ret