Function at 0x4e6bf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov eax, dword [0x700320]
push ebx
push ebp
push esi
lea ecx, [esp + 0xf]
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov al, byte [esp + 0x74]
xor ebp, ebp
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4c], al
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
call fcn.004e7240
mov ecx, dword [esp + 0x74]
mov dl, byte [esp + 0x74]
mov eax, dword [0x700320]
mov dword [esp + 0x44], ebp
mov ebx, dword [ecx + 0x3908]
mov dword [esp + 0x6c], ebp
cmp ebx, ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x14], ebp
mov byte [esp + 0x1c], dl
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], eax
je 0x4e6ecd
mov edx, dword [esp + 0x78]
push 0x7654a0
push edx
lea ecx, [esp + 0x44]
mov dword [ebx + 0x2c], ebp
call fcn.004e6030
test eax, eax
je 0x4e6ecd
lea eax, [esp + 0x2c]
push str.IMAGE
push eax
lea ecx, [esp + 0x44]
call fcn.004e6610
mov esi, eax
lea ecx, [esp + 0x1c]
cmp ecx, esi
je 0x4e6da8
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x4e6cb1
xor edi, edi
jmp 0x4e6cb9
mov edi, dword [esi + 8]
sub edi, eax
sar edi, 2
lea ecx, [esp + 0x1c]
call fcn.004e7220
cmp edi, eax
ja 0x4e6d01
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.004e7c40
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004e7620
mov ecx, esi
call fcn.004e7220
mov edx, dword [esp + 0x20]
lea eax, [edx + eax*4]
mov dword [esp + 0x24], eax
jmp 0x4e6da8
mov ecx, esi
call fcn.004e7220
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.004e7600
cmp edi, eax
ja 0x4e6d4d
mov edi, dword [esi + 4]
lea ecx, [esp + 0x1c]
call fcn.004e7220
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
lea edi, [edi + eax*4]
push ecx
push edi
push edx
call fcn.004e7c40
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 8]
add esp, 0xc
push eax
push ecx
push edi
lea ecx, [esp + 0x28]
call fcn.004e7630
jmp 0x4e6cea
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004e7620
mov eax, dword [esp + 0x20]
push eax
call fcn.00548c9c
add esp, 4
mov ecx, esi
call fcn.004e7220
cmp eax, ebp
jge 0x4e6d7a
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.00548c73
add esp, 4
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.004e7630
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.004e7620
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00548c9c
mov ecx, dword [esp + 0x24]
add esp, 4
cmp ecx, ebp
je 0x4e6ecd
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 2
je 0x4e6ecd
lea edx, [eax + eax*2]
mov dword [ebx + 0x2c], eax
shl edx, 3
push edx
call fcn.004df770
add esp, 4
cmp eax, ebp
mov dword [ebx + 0x24], eax
je 0x4e6ecd
mov eax, dword [ebx + 0x2c]
xor esi, esi
cmp eax, ebp
jle 0x4e6ec5
xor edi, edi
mov eax, dword [esp + 0x20]
push str.INDEX
mov ecx, dword [eax + esi*4]
call fcn.004e65f0
cmp eax, ebp
je 0x4e6e33
push eax
call fcn.00526b7f
mov ecx, dword [ebx + 0x24]
add esp, 4
mov dword [edi + ecx], eax
mov edx, dword [esp + 0x20]
push str.DISPLAYNAME
mov ecx, dword [edx + esi*4]
call fcn.004e6770
cmp eax, ebp
je 0x4e6e58
push eax
call fcn.00526b7f
mov ecx, dword [ebx + 0x24]
add esp, 4
mov dword [edi + ecx + 0x10], eax
mov edx, dword [ebx + 0x24]
mov eax, dword [edi + edx + 0x10]
cmp eax, ebp
je 0x4e6e68
cmp word [eax], bp
jne 0x4e6e8d
mov eax, dword [esp + 0x20]
push str.NAME
mov ecx, dword [eax + esi*4]
call fcn.004e6770
cmp eax, ebp
je 0x4e6e8d
push eax
call fcn.00526b7f
mov ecx, dword [ebx + 0x24]
add esp, 4
mov dword [edi + ecx + 0x10], eax
mov edx, dword [esp + 0x20]
push str.TOTALBYTES
mov ecx, dword [edx + esi*4]
call fcn.004e6770
cmp eax, ebp
je 0x4e6eb6
push eax
call fcn.00526cf5
mov ecx, dword [ebx + 0x24]
add esp, 4
mov dword [edi + ecx + 8], eax
mov dword [edi + ecx + 0xc], edx
mov eax, dword [ebx + 0x2c]
inc esi
add edi, 0x18
cmp esi, eax
jl 0x4e6e0f
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x18]
call fcn.00544250
mov edx, dword [esp + 0x20]
push edx
call fcn.00548c9c
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004e5240
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret