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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov eax, dword [0x5c4008]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
mov esi, ecx
mov ecx, 0x70a6a4
push edi
mov dword [esp + 0x14], esi
call fcn.0056b0a5
mov edx, dword [esi + 0x2ac]
mov ecx, dword [esi + 0x2a4]
mov ebx, dword [esi + 0x29c]
add ebx, edx
lea eax, [edx + edx]
mov dword [esp + 0x1c], ebx
sub ecx, eax
mov eax, ecx
mov dword [esp + 0x28], ecx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x2a8]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [esi + 0x2b0]
add edi, dword [esi + 0x2a0]
mov dword [esp + 0x10], edi
cmp dword [esi + 0x298], ebx
jle 0x4ebdd1
lea edi, [ebx + 0x20]
nop dword [eax]
push ebx
push dword [esi + 0x294]
lea eax, [esp + 0x40]
push str._sSave_i
push 0x64
push eax
call fcn.004dc4f0
add esp, 0x14
lea eax, [esp + 0xa0]
push 0
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004dc2a0
test al, al
je 0x4ebc39
test ebx, ebx
jne 0x4eba94
xor ecx, ecx
lea eax, [esp + 0xa0]
cmp word [esp + 0xa0], cx
je 0x4eba5a
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x4eba50
lea esi, [esp + 0xa2]
mov word [esp + ecx*2 + 0xa0], di
push 0x186b3
lea esi, [esi + ecx*2]
call fcn.004f5510
movzx ecx, word [eax]
test cx, cx
je 0x4eba8f
sub eax, esi
mov word [esi], cx
add esi, 2
movzx ecx, word [eax + esi]
test cx, cx
jne 0x4eba80
xor eax, eax
mov word [esi], ax
mov eax, dword [0x5ce53c]
push 0
push 0
mov ecx, dword [eax + 0x10]
call fcn.004d96b0
mov ecx, dword [0x6d07e8]
mov esi, eax
mov dword [esp + 0xc], esi
push 2
cmp dword [ecx + 0x1c], 0
jne 0x4ebacc
push str.Object__i_not_registered.
push 2
call fcn.004e9620
add esp, 0xc
xor edi, edi
jmp 0x4ebb43
mov ecx, esi
call fcn.004fc0b0
test eax, eax
je 0x4ebaec
push 2
push str.Object__i_already_exists_in_the_node.
push 2
call fcn.004e9620
add esp, 0xc
xor edi, edi
jmp 0x4ebb43
mov eax, dword [0x6d07e8]
mov edi, dword [eax + 0x1c]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x579378]
mov ecx, edi
call esi
mov ecx, dword [0x6cf7a0]
mov edi, eax
mov eax, dword [0x6d07e8]
push 0
mov eax, dword [eax + 0x1c]
push dword [eax + 0x24]
call fcn.00503440
mov ecx, dword [edi]
push 0
push eax
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x579378]
mov ecx, edi
call esi
mov esi, dword [esp + 0xc]
mov ecx, esi
push edi
mov byte [edi + 0x24], 1
call fcn.004fbfe0
mov eax, dword [edi + 0x28]
mov dword [eax + 8], 0
lea eax, [esp + 0xa0]
cmp dword [edi + 0x2c], 0
mov byte [edi + 0x24], 1
mov dword [edi + 0x30], eax
je 0x4ebb68
mov ecx, edi
call fcn.004dad40
mov eax, dword [esi + 4]
mov ecx, esi
movd xmm0, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
push 0xfffffffffffffffe
movss dword [eax + 0x10], xmm0
mov eax, dword [esi + 4]
movd xmm0, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
movss dword [eax + 0x14], xmm0
mov eax, dword [edi + 0x28]
mov dword [eax + 0x14], 0x1388
mov byte [edi + 0x24], 1
mov eax, dword [esi + 4]
mov dword [eax + 0x28], 3
mov eax, dword [edi + 0x28]
mov dword [eax + 0x10], 0
mov byte [edi + 0x24], 1
call fcn.004fc160
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push 0
mov dword [esi + ebx*4 + 0x18c], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
mov byte [esi + ebx + 0x78], 1
mov ecx, dword [esi + ebx*4 + 0x18c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004fc570
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
cvttss2si eax, xmm0
cmp eax, ecx
jle 0x4ebd86
movd xmm0, eax
movd xmm1, ecx
mov ecx, dword [esi + ebx*4 + 0x18c]
cvtdq2ps xmm1, xmm1
mov eax, dword [ecx + 4]
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [eax + 0x18], xmm1
mov eax, dword [ecx + 4]
movss dword [eax + 0x1c], xmm1
jmp 0x4ebd86
test ebx, ebx
jne 0x4ebc44
push 0x186b3
jmp 0x4ebc49
push 0x186b4
call fcn.004f5510
mov dword [esp + 0x18], eax
mov eax, dword [0x5ce53c]
push 0
push 0
mov ecx, dword [eax + 0x10]
call fcn.004d96b0
mov ecx, dword [0x6d07e8]
mov dword [esp + 0xc], eax
push 2
cmp dword [ecx + 0x1c], 0
jne 0x4ebc88
push str.Object__i_not_registered.
push 2
call fcn.004e9620
add esp, 0xc
xor edi, edi
jmp 0x4ebd01
mov ecx, eax
call fcn.004fc0b0
test eax, eax
je 0x4ebca8
push 2
push str.Object__i_already_exists_in_the_node.
push 2
call fcn.004e9620
add esp, 0xc
xor edi, edi
jmp 0x4ebd01
mov eax, dword [0x6d07e8]
mov edi, dword [eax + 0x1c]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x579378]
mov ecx, edi
call esi
mov ecx, dword [0x6cf7a0]
mov edi, eax
mov eax, dword [0x6d07e8]
push 0
mov eax, dword [eax + 0x1c]
push dword [eax + 0x24]
call fcn.00503440
mov ecx, dword [edi]
push 0
push eax
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x579378]
mov ecx, edi
call esi
mov ecx, dword [esp + 0xc]
push edi
mov byte [edi + 0x24], 1
call fcn.004fbfe0
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x28]
mov dword [eax + 8], 0
cmp dword [edi + 0x2c], 0
mov eax, dword [esp + 0x18]
mov byte [edi + 0x24], 1
mov dword [edi + 0x30], eax
je 0x4ebd23
mov ecx, edi
call fcn.004dad40
mov ecx, dword [esp + 0xc]
movd xmm0, dword [esp + 0x2c]
cvtdq2ps xmm0, xmm0
push 0xfffffffffffffffe
mov eax, dword [ecx + 4]
movss dword [eax + 0x10], xmm0
mov eax, dword [ecx + 4]
movd xmm0, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
movss dword [eax + 0x14], xmm0
mov eax, dword [edi + 0x28]
mov dword [eax + 0x14], 0x7d0
mov byte [edi + 0x24], 1
mov eax, dword [ecx + 4]
mov dword [eax + 0x28], 4
mov eax, dword [edi + 0x28]
mov dword [eax + 0x10], 0
mov byte [edi + 0x24], 1
call fcn.004fc160
mov eax, dword [esp + 0xc]
mov dword [esi + ebx*4 + 0x18c], eax
mov byte [esi + ebx + 0x78], 0
mov eax, dword [esi + ebx*4 + 0x8c]
mov dword [eax + 0x60], 0
mov ecx, dword [esi + ebx*4 + 0x8c]
mov edx, dword [ecx + 0x60]
cmp edx, 0xa
jge 0x4ebdb1
mov eax, dword [esi + ebx*4 + 0x18c]
mov dword [ecx + edx*4 + 0x38], eax
inc dword [ecx + 0x60]
mov eax, dword [esp + 0x10]
inc ebx
add eax, dword [esi + 0x2a8]
mov edi, 0x20
mov dword [esp + 0x10], eax
cmp ebx, dword [esi + 0x298]
jl 0x4eba00
mov ecx, dword [esp + 0x874]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00551170
mov esp, ebp
pop ebp
ret