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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], 0
test dword [esi + 8], 0x80000
je 0x4e66fe
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
mov dword [ebp - 4], 1
cmp eax, dword [esi + 0x24]
jbe 0x4e6705
mov dword [ebp - 4], 0
cmp dword [esi], 0
jne 0x4e6725
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0x4e6725
mov eax, dword [esi + 0x74]
add eax, ecx
jmp 0x4e672b
lea eax, [esi + 0x39272]
mov cl, byte [esi + 0x38]
mov dword [esi + 0x30], eax
mov dword [ebp - 0xc], eax
add eax, 0x14cbc
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
shr byte [eax], cl
xor eax, eax
cmp dword [esi + 0x38], 8
sete al
sub dword [esi + 0x28], eax
test dword [esi + 8], 0x1000
je 0x4e67de
cmp dword [esi + 0x64], 0
jne 0x4e67de
mov ecx, dword [esi + 0x44]
mov edx, 0x78
shl edx, cl
or edx, dword [esi + 0x48]
mov dword [esi + 0x48], edx
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x4e67a9
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4e6792
mov byte [eax], dl
inc dword [esi + 0x30]
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
add eax, 0xfffffff8
shr edx, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x4e6785
bts edx, eax
add eax, 8
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x4e67de
lea ebx, [ebx]
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4e67cd
mov byte [eax], dl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
mov dl, byte [esi + 0x48]
jae 0x4e67c0
mov ecx, dword [esi + 0x44]
xor eax, eax
cmp dword [ebp + 0xc], 4
sete al
shl eax, cl
inc ecx
or eax, dword [esi + 0x48]
mov dword [esi + 0x48], eax
mov dword [ebp + 8], ecx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jb 0x4e682e
mov edi, edi
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x34]
jae 0x4e6810
mov byte [edi], al
inc dword [esi + 0x30]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
shr ebx, 8
mov dword [esi + 0x48], ebx
lea ecx, [eax - 8]
mov al, bl
mov dword [ebp + 8], ecx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x4e6800
jmp 0x4e6833
mov edi, dword [esi + 0x30]
mov ebx, eax
cmp dword [ebp - 4], 0
jne 0x4e6877
test dword [esi + 8], 0x40000
jne 0x4e684c
cmp dword [esi + 0x3c], 0x30
jb 0x4e684c
xor eax, eax
jmp 0x4e6851
mov eax, 1
push eax
push esi
call fcn.004e55a0
mov edx, dword [esi + 0x3c]
add esp, 8
mov ecx, dword [esi + 0x30]
mov dword [ebp - 8], eax
test edx, edx
je 0x4e69b9
sub ecx, edi
inc ecx
cmp ecx, edx
jb 0x4e69b9
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
ja 0x4e69b6
mov edx, dword [ebp + 8]
mov ecx, edi
add edx, 2
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], edx
cmp edx, 8
jb 0x4e68ce
mov eax, edi
mov edi, edi
mov edi, ecx
cmp eax, dword [esi + 0x34]
jae 0x4e68b3
mov byte [eax], bl
inc dword [esi + 0x30]
mov edi, dword [esi + 0x30]
mov ecx, edi
jmp 0x4e68b5
mov ecx, edi
mov edx, dword [esi + 0x44]
mov eax, edi
mov ebx, dword [esi + 0x48]
add edx, 0xfffffff8
shr ebx, 8
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], edx
cmp edx, 8
jae 0x4e68a0
test edx, edx
je 0x4e6904
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], 8
lea esp, [esp]
cmp edi, dword [esi + 0x34]
jae 0x4e68f1
mov byte [edi], bl
inc dword [esi + 0x30]
mov edi, dword [esi + 0x30]
mov ecx, edi
jmp 0x4e68f3
mov edi, ecx
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
mov bl, byte [esi + 0x48]
jae 0x4e68e0
mov eax, dword [esi + 0x3c]
mov edi, 2
lea esp, [esp]
mov ecx, dword [esi + 0x44]
movzx edx, ax
shl edx, cl
or edx, dword [esi + 0x48]
lea eax, [ecx + 0x10]
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x4e694e
lea esp, [esp]
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4e693d
mov byte [eax], dl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
mov dl, byte [esi + 0x48]
jae 0x4e6930
mov eax, dword [esi + 0x3c]
xor eax, 0xffff
mov dword [esi + 0x3c], eax
sub edi, 1
jne 0x4e6910
test eax, eax
je 0x4e69d4
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
add eax, edi
and eax, 0x7fff
movzx edx, byte [eax + esi + 0x90]
lea eax, [ecx + 8]
shl edx, cl
or edx, dword [esi + 0x48]
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x4e69ae
lea ebx, [ebx]
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4e699d
mov byte [eax], dl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
mov dl, byte [esi + 0x48]
jae 0x4e6990
inc edi
cmp edi, dword [esi + 0x3c]
jb 0x4e6962
jmp 0x4e69d4
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4e69d4
mov eax, dword [ebp + 8]
push 1
push esi
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], eax
call fcn.004e55a0
add esp, 8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4e6b29
mov eax, dword [esi + 0x44]
cmp ecx, 4
jne 0x4e6a7b
test eax, eax
je 0x4e6a1e
mov cl, byte [esi + 0x48]
mov dword [esi + 0x44], 8
lea esp, [esp]
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4e6a0d
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
mov ecx, dword [esi + 0x48]
jae 0x4e6a00
test dword [esi + 8], 0x1000
je 0x4e6b29
mov edi, dword [esi + 0x18]
mov ebx, 4
mov ecx, dword [esi + 0x44]
mov edx, edi
shr edx, 0x18
shl edx, cl
or edx, dword [esi + 0x48]
lea eax, [ecx + 8]
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x4e6a6e
mov edi, edi
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4e6a5d
mov byte [eax], dl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
mov dl, byte [esi + 0x48]
jae 0x4e6a50
shl edi, 8
sub ebx, 1
jne 0x4e6a33
jmp 0x4e6b29
mov ecx, dword [esi + 0x48]
add eax, 3
xor ebx, ebx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x4e6ab4
jmp 0x4e6a90
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4e6a9d
mov byte [eax], cl
inc dword [esi + 0x30]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
add eax, 0xfffffff8
shr ecx, 8
mov dword [esi + 0x48], ecx
mov dword [esi + 0x44], eax
cmp eax, 8
jae 0x4e6a90
test eax, eax
je 0x4e6ae0
mov dword [esi + 0x48], ecx
mov dword [esi + 0x44], 8
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4e6acf
mov byte [eax], cl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
mov cl, byte [esi + 0x48]
jae 0x4e6ac2
mov edi, 2
mov ecx, dword [esi + 0x44]
movzx edx, bx
shl edx, cl
or edx, dword [esi + 0x48]
lea eax, [ecx + 0x10]
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x4e6b1e
mov edi, edi
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x4e6b0d
mov byte [eax], dl
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
mov dl, byte [esi + 0x48]
jae 0x4e6b00
xor ebx, 0xffff
sub edi, 1
jne 0x4e6ae5
push 0x280
lea eax, [esi + 0x8192]
push 0
push eax
call fcn.0050ce60
mov edi, dword [esi + 0x30]
lea eax, [esi + 0x9273]
inc dword [esi + 0x64]
add esp, 0xc
mov dword [esi + 0x28], eax
lea eax, [esi + 0x9272]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x3c]
add dword [esi + 0x40], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x38], 8
mov dword [esi + 0x3c], 0
sub edi, eax
je 0x4e6bfc
cmp dword [esi], 0
je 0x4e6bb0
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x70]
mov dword [eax], ecx
lea eax, [esi + 0x39272]
push dword [esi + 4]
push edi
push eax
mov eax, dword [esi]
call eax
add esp, 0xc
test eax, eax
jne 0x4e6bfc
pop edi
mov dword [esi + 0x6c], 0xffffffff
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x39272]
cmp eax, ecx
jne 0x4e6bf6
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x8c]
mov ebx, dword [eax]
sub ebx, edx
cmp edi, ebx
jae 0x4e6bcd
mov ebx, edi
mov eax, dword [esi + 0x74]
push ebx
push ecx
add eax, edx
push eax
call fcn.0050c8e0
add dword [esi + 0x8c], ebx
add esp, 0xc
sub edi, ebx
je 0x4e6bfc
mov dword [esi + 0x5c], edi
mov eax, edi
pop edi
mov dword [esi + 0x58], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x8c], edi
mov eax, dword [esi + 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret