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

Disassembly:
push 0xffffffffffffffff
push 0x529451
mov eax, dword fs:[0]
push eax
mov eax, 0x8704
mov dword fs:[0], esp
call fcn.004a2fa0
mov eax, dword [0x58f2d4]
push ebp
mov ebp, ecx
lea ecx, [esp + 0x2b4]
mov dword [esp + 0x8704], eax
mov dword [esp + 0x18], ebp
call fcn.004ea5b0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8710], 0
call fcn.004ea5b0
lea ecx, [esp + 0x4dc]
mov byte [esp + 0x8710], 1
call fcn.004ea5b0
mov eax, dword [ebp + 0x40]
test eax, eax
mov byte [esp + 0x8710], 2
je 0x4ec792
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x4ec792
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x4ec792
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x4ec792
mov ecx, ebp
call fcn.004ebb10
test eax, eax
jne 0x4ebd61
lea ecx, [esp + 0x4dc]
mov byte [esp + 0x8710], 1
call fcn.004ea410
lea ecx, [esp + 0x8c]
mov byte [esp + 0x8710], 0
call fcn.004ea410
lea ecx, [esp + 0x2b4]
mov dword [esp + 0x8710], 0xffffffff
call fcn.004ea410
mov eax, 0xfffffffd
jmp 0x4ebe41
mov eax, dword [ebp + 4]
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
mov dword [esp + 0x18], ebx
jne 0x4ebdce
lea ecx, [esp + 0x4e4]
mov byte [esp + 0x8718], 1
call fcn.004ea410
lea ecx, [esp + 0x94]
mov byte [esp + 0x8718], 0
call fcn.004ea410
lea ecx, [esp + 0x2bc]
mov dword [esp + 0x8718], edi
call fcn.004ea410
mov eax, 0xfffffffc
jmp 0x4ebe3f
push esi
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x4ebe65
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x871c], 1
call fcn.004ea410
lea ecx, [esp + 0x98]
mov byte [esp + 0x871c], 0
call fcn.004ea410
mov dword [esp + 0x871c], edi
lea ecx, [esp + 0x2c0]
call fcn.004ea410
mov eax, 0xfffffffc
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x8708]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8704]
pop ebp
call fcn.004a5518
add esp, 0x8710
ret 4
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x4ebec2
push esi
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push ebx
call esi
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x871c], 1
call fcn.004ea410
lea ecx, [esp + 0x98]
mov byte [esp + 0x871c], 0
call fcn.004ea410
mov dword [esp + 0x871c], 0xffffffff
jmp 0x4ebe2d
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
push ecx
lea eax, [edi + 0x10]
push eax
lea ecx, [esp + 0x2c8]
call fcn.004ea2f0
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x2c4]
call fcn.004ea3d0
mov ecx, 4
lea esi, [esp + 0x88]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x4ebf62
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
call esi
push ebx
call esi
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x871c], 1
call fcn.004ea410
lea ecx, [esp + 0x98]
mov byte [esp + 0x871c], 0
call fcn.004ea410
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x871c], 0xffffffff
call fcn.004ea410
or eax, 0xffffffff
jmp 0x4ebe3e
mov eax, dword [ebp + 0x38]
mov esi, dword [sym.imp.kernel32.dll_lstrlen]
push eax
mov dword [esp + 0x44], 0x4000
call esi
mov ecx, dword [ebp + 0x3c]
push ecx
mov edi, eax
call esi
cmp edi, eax
jle 0x4ebf88
mov edx, dword [ebp + 0x38]
push edx
jmp 0x4ebf8c
mov eax, dword [ebp + 0x3c]
push eax
call esi
lea ecx, [esp + 0x710]
push ecx
mov ecx, dword [esp + 0x14]
add ecx, 0x10
lea edx, [esp + 0x44]
push edx
mov edx, dword [ebp + 0x3c]
push ecx
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
push ecx
mov ecx, dword [ebp + 0x38]
push edx
push ecx
lea edx, [eax*4]
push edx
call fcn.004ed230
add esp, 0x1c
test eax, eax
je 0x4ec02b
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
call esi
push ebx
call esi
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x871c], 1
call fcn.004ea410
lea ecx, [esp + 0x98]
mov byte [esp + 0x871c], 0
call fcn.004ea410
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x871c], 0xffffffff
call fcn.004ea410
mov eax, 0xfffffff7
jmp 0x4ebe3e
mov eax, dword [esp + 0x720]
cmp eax, dword [esp + 0x40]
jg 0x4ec77d
test eax, eax
jl 0x4ec77d
add eax, 0xfffffff0
push eax
lea edx, [esp + 0x724]
push edx
lea ecx, [esp + 0xa0]
call fcn.004ea2f0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x9c]
call fcn.004ea3d0
mov ecx, 4
lea edi, [esp + 0x710]
lea esi, [esp + 0x88]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x4ec0ed
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push ebx
call esi
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x871c], 1
call fcn.004ea410
lea ecx, [esp + 0x98]
mov byte [esp + 0x871c], 0
call fcn.004ea410
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x871c], 0xffffffff
call fcn.004ea410
mov eax, 0xfffffffe
jmp 0x4ebe3e
mov eax, dword [esp + 0x728]
mov edx, dword [esp + 0x724]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [ebp + 0xc], edx
lea ebx, [esp + 0x72c]
je 0x4ec118
push eax
call fcn.004fb3dc
add esp, 4
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebp + 0x14], 0
je 0x4ec16e
inc eax
push eax
call fcn.004fb3b1
mov ecx, dword [ebp + 0x10]
add esp, 4
inc ecx
mov edx, ecx
shr ecx, 2
mov edi, eax
mov dword [ebp + 0x14], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x72c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp + 0x10]
lea ebx, [esp + ebx + 0x72c]
add ebp, 0x18
mov dword [esp + 0x18], 4
lea esp, [esp]
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x10]
add ebx, 4
test eax, eax
mov dword [ebp], ecx
je 0x4ec198
push eax
call fcn.004fb3dc
add esp, 4
mov eax, dword [ebp]
test eax, eax
mov dword [ebp + 0x10], 0
je 0x4ec1e2
inc eax
push eax
call fcn.004fb3b1
mov ecx, dword [ebp]
add esp, 4
inc ecx
mov edx, ecx
shr ecx, 2
mov edi, eax
mov dword [ebp + 0x10], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp]
mov edi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebx, dword [ebp]
mov eax, dword [esp + 0x18]
add ebp, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x4ec180
mov ebp, dword [esp + 0x24]
mov esi, dword [sym.imp.kernel32.dll_lstrlen]
mov ecx, ebx
mov edx, dword [ecx]
lea eax, [ebp + 0x48]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp + 0x40]
add ebx, 0x10
push eax
mov dword [esp + 0x24], edx
add ebx, 4
call esi
mov ecx, dword [ebp + 0x44]
push ecx
mov edi, eax
call esi
cmp edi, eax
jle 0x4ec23a
mov edx, dword [ebp + 0x40]
push edx
jmp 0x4ec23e
mov eax, dword [ebp + 0x44]
push eax
call esi
lea ecx, [esp + 0x4710]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x48]
push edx
mov edx, dword [ebp + 0x44]
push ebx
push ecx
mov ecx, dword [ebp + 0x40]
push edx
push ecx
lea edx, [eax*4]
push edx
call fcn.004ed230
add esp, 0x1c
test eax, eax
je 0x4ec2d7
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x871c], 1
call fcn.004ea410
lea ecx, [esp + 0x98]
mov byte [esp + 0x871c], 0
call fcn.004ea410
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x871c], 0xffffffff
call fcn.004ea410
mov eax, 0xfffffff7
jmp 0x4ebe3e
mov eax, dword [esp + 0x4720]
cmp eax, dword [esp + 0x44]
jg 0x4ec423
test eax, eax
jl 0x4ec423
add eax, 0xfffffff0
push eax
lea eax, [esp + 0x4724]
push eax
lea ecx, [esp + 0x4f0]
call fcn.004ea2f0
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x4ec]
call fcn.004ea3d0
mov ecx, 4
lea edi, [esp + 0x4710]
lea esi, [esp + 0x88]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x4ec39d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x871c], 1
call fcn.004ea410
lea ecx, [esp + 0x98]
mov byte [esp + 0x871c], 0
call fcn.004ea410
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x871c], 0xffffffff
call fcn.004ea410
mov eax, 3
jmp 0x4ebe3e
lea eax, [esp + 0x4724]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0xc]
je 0x4ec413
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x871c], 1
call fcn.004ea410
lea ecx, [esp + 0x98]
mov byte [esp + 0x871c], 0
call fcn.004ea410
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x871c], 0xffffffff
call fcn.004ea410
mov eax, 3
jmp 0x4ebe3e
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x4728]
mov eax, dword [edx]
cmp eax, ecx
je 0x4ec48b
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x871c], 1
call fcn.004ea410
lea ecx, [esp + 0x98]
mov byte [esp + 0x871c], 0
call fcn.004ea410
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x871c], 0xffffffff
call fcn.004ea410
mov eax, 3
jmp 0x4ebe3e
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov ecx, eax
lea esi, [esp + 0x472c]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4ec335
lea ebp, [esp + eax + 0x472c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edx
add eax, 0x18
mov ecx, dword [ebp]
mov edx, dword [eax]
cmp ecx, edx
jne 0x4ec3ab
add ebp, 4
test edx, edx
je 0x4ec4db
mov edi, dword [eax + 0x10]
mov ecx, edx
mov esi, ebp
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4ec3ab
mov ecx, dword [esp + 0x18]
add ebp, edx
inc ecx
add eax, 4
cmp ecx, 4
mov dword [esp + 0x18], ecx
jl 0x4ec4b6
mov edi, dword [esp + 0x24]
add edi, 0x48
mov ecx, 4
mov esi, ebp
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x4ec335
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], edx
add ebp, 0x10
lea ebx, [edi + 0x58]
mov dword [esp + 0x20], 3
lea esp, [esp]
mov eax, dword [ebx]
test eax, eax
mov esi, dword [ebp]
mov dword [esp + 0x38], esi
je 0x4ec536
push eax
call fcn.004fb3dc
add esp, 4
add ebp, 4
test esi, esi
mov dword [ebx], 0
jle 0x4ec585
lea edi, [esi + 1]
push edi
call fcn.004fb3b1
mov edx, eax
mov ecx, edi
mov dword [ebx], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebx]
mov ecx, esi
mov eax, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x3c]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
add ebp, eax
mov eax, dword [esp + 0x20]
add ebx, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x4ec520
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.kernel32.dll_GetSystemTime]
mov eax, dword [esp + 0x8724]
xor ebp, ebp
cmp eax, ebp
je 0x4ec6a1
mov eax, dword [edi + 0x58]
cmp eax, ebp
je 0x4ec6a1
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
test eax, eax
je 0x4ec6a1
mov ecx, dword [edi + 0x58]
xor edx, edx
mov dword [esp + 0x28], edx
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], edx
push eax
mov dword [esp + 0x34], edx
push ecx
mov ecx, edi
mov dword [esp + 0x3c], edx
call fcn.004ebb50
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.oleaut32.dll_VarDateFromUdate]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x50], edx
push ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x6c]
push ebp
lea edx, [esp + 0x74]
mov dword [esp + 0x5c], eax
push edx
mov word [esp + 0x62], bp
mov word [esp + 0x60], bp
mov word [esp + 0x5e], bp
mov word [esp + 0x5c], bp
call esi
lea eax, [esp + 0x38]
push eax
push ebp
lea ecx, [esp + 0x50]
push ecx
call esi
fld qword [esp + 0x38]
fsub qword [esp + 0x80]
fcom qword [0x52bac8]
fst qword [esp + 0x38]
fnstsw ax
test ah, 5
jp 0x4ec68c
fchs
fst qword [esp + 0x38]
fcomp qword [0x52f9a8]
fnstsw ax
test ah, 0x41
jne 0x4ec6a1
mov dword [esp + 0x20], 0xa
mov eax, dword [edi + 0x5c]
xor esi, esi
cmp eax, ebp
je 0x4ec6ca
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, edi
call fcn.004ebb50
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.004ebc20
mov esi, eax
cmp dword [edi + 0x60], ebp
je 0x4ec6f4
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, edi
call fcn.004ebb50
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
call fcn.004ebc20
mov ebx, eax
jmp 0x4ec6f6
mov ebx, esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x1c]
push edx
call edi
cmp esi, ebp
je 0x4ec727
xor eax, eax
cmp ebx, ebp
setne al
inc eax
mov dword [esp + 0x18], eax
jmp 0x4ec735
cmp dword [esp + 0x20], ebp
je 0x4ec735
mov dword [esp + 0x18], 4
lea ecx, [esp + 0x4e8]
mov byte [esp + 0x871c], 1
call fcn.004ea410
lea ecx, [esp + 0x98]
mov byte [esp + 0x871c], 0
call fcn.004ea410
lea ecx, [esp + 0x2c0]
mov dword [esp + 0x871c], 0xffffffff
call fcn.004ea410
mov eax, dword [esp + 0x18]
jmp 0x4ebe3e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x14]
push edx
jmp 0x4ec099
lea ecx, [esp + 0x4dc]
mov byte [esp + 0x8710], 1
call fcn.004ea410
lea ecx, [esp + 0x8c]
mov byte [esp + 0x8710], 0
call fcn.004ea410
lea ecx, [esp + 0x2b4]
mov dword [esp + 0x8710], 0xffffffff
call fcn.004ea410
mov eax, 0xfffffff8
jmp 0x4ebe41