Function at 0x514ba0
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 0x51513f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40cdc4]
call fcn.00402e3c
mov dword [ebp - 0x48], eax
mov dl, 1
mov eax, dword [0x40cdc4]
call fcn.00402e3c
mov dword [ebp - 0x4c], eax
mov dl, 1
mov eax, dword [0x40cdc4]
call fcn.00402e3c
mov dword [ebp - 0x50], eax
mov dl, 1
mov eax, dword [0x40cdc4]
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 0x51510f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x20
mov eax, dword [ebp + 8]
call fcn.00407578
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jge 0x514c4b
call fcn.00403508
jmp 0x515119
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 0x514c71
call fcn.00403508
jmp 0x515119
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 0x514c95
call fcn.00403508
jmp 0x515119
xor eax, eax
push ebp
push 0x514ff9
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 0x514cd2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403508
jmp 0x515119
mov eax, dword [ebp - 4]
add eax, 0x78
mov dword [ebp - 0x1c], eax
call fcn.00594cf8
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 0x514e68
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
cmp dword [eax + edx*8 + 4], 0
je 0x514e68
push ebp
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + edx*8]
call fcn.00514b00
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x514e68
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x514e54
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.00514b00
pop ecx
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x38]
call fcn.00407c18
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x34]
call fcn.00406fac
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
call fcn.005149b4
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 0x514e51
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.00449fec
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x40], 0xffffffff
je 0x514e37
mov edx, 0x23
mov eax, dword [ebp - 0x44]
call fcn.0044929c
mov edx, 0x23
mov eax, dword [ebp - 0x44]
call fcn.004492d0
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 0x514e51
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 0x514e51
mov edx, 0x25
mov eax, dword [ebp - 0x44]
call fcn.0044929c
mov edx, 0x25
mov eax, dword [ebp - 0x44]
call fcn.004492d0
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 0x514d3e
mov dword [ebp - 0x28], 0xd
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
cmp dword [eax + edx*8], 0
je 0x514fef
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
cmp dword [eax + edx*8 + 4], 0
je 0x514fef
push ebp
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + edx*8]
call fcn.00514b00
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x514fef
jmp 0x514fe2
mov eax, dword [ebp - 0x24]
test byte [eax], 1
jne 0x514ed2
push ebp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x34]
call fcn.00514b00
pop ecx
mov dword [ebp - 0x38], eax
jmp 0x514ee2
push ebp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
call fcn.00514b00
pop ecx
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x38]
call fcn.00407c18
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x34]
call fcn.00406fac
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
call fcn.005149b4
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 0x514fde
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.00449fec
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x40], 0xffffffff
je 0x514fc4
mov edx, 0x24
mov eax, dword [ebp - 0x44]
call fcn.0044929c
mov edx, 0x24
mov eax, dword [ebp - 0x44]
call fcn.004492d0
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 0x514fde
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 0x514fde
mov edx, 0x26
mov eax, dword [ebp - 0x44]
call fcn.0044929c
mov edx, 0x26
mov eax, dword [ebp - 0x44]
call fcn.004492d0
add dword [ebp - 0x24], 0x20
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 0
jne 0x514eb2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515003
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515119
cmp dword [ebp - 0xc], 0
je 0x51501f
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_UnmapViewOfFile
cmp dword [ebp - 0x5c], 0
je 0x51502e
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0x58], 0xffffffff
je 0x51503c
mov eax, dword [ebp - 0x58]
call fcn.00407640
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x515085
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.00514ba0
inc dword [ebp - 0x2c]
dec dword [ebp - 0x60]
jne 0x515054
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5150ce
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.00514ba0
inc dword [ebp - 0x2c]
dec dword [ebp - 0x60]
jne 0x51509d
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + pe_nt_image_headers32]
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
call dword [edx + pe_nt_image_headers32]
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + pe_nt_image_headers32]
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
call dword [edx + pe_nt_image_headers32]
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 0x515146
lea eax, [ebp - 0x68]
call fcn.00403a10
lea eax, [ebp - 0x34]
call fcn.00403a10
lea eax, [ebp + 8]
call fcn.00403a10
ret