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

Disassembly:
sub esp, 0x4dc
push ebp
mov ebp, ecx
mov dword [esp + 8], ebp
cmp dword [ebp + 0x5544], 0xffffffff
je 0x4e95a3
mov eax, 0xf
pop ebp
add esp, 0x4dc
ret
push ebx
push esi
push edi
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, 0x64
mov eax, SysReAllocString
lea edi, [esp + 0x1cc]
rep stosd dword es:[edi], eax
mov ecx, dword [0x84e498]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x4e96e5
mov ecx, dword [0x84e48c]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x4e96d2
mov edx, dword [esi + 0x24]
mov ebx, dword [esi + 0x50]
mov cl, byte [edx + 0xab]
test cl, cl
je 0x4e9602
mov cl, byte [esi + 0x79]
test cl, cl
je 0x4e9618
mov cl, byte [esi + 0x77]
test cl, cl
jne 0x4e96d2
mov cl, byte [esi + 0x78]
test cl, cl
jne 0x4e96d2
cmp dword [esi + 0x2c], ebp
jne 0x4e96d2
push 0
push 0
lea ecx, [esp + 0x2c]
call fcn.004b9ee0
lea eax, [esp + 0x24]
xor edi, edi
push eax
mov ecx, esi
mov dword [esp + 0x28], vtable.DynamicVectorClass_class_TechnoTypeClass_const__.0
mov dword [esp + 0x3c], 0xa
mov dword [esp + 0x38], edi
call fcn.006b2d70
mov eax, dword [esp + 0x34]
xor ebp, ebp
cmp eax, ebp
jle 0x4e969c
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + edi*4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x2c]
cmp eax, 0x10
jne 0x4e9693
mov eax, dword [esi + 0xb90]
shl eax, 2
mov edx, dword [esp + eax + 0x3c]
mov ecx, dword [esp + eax + 0x1cc]
inc edx
cmp ebx, ecx
mov dword [esp + eax + 0x3c], edx
lea eax, [esp + eax + 0x1cc]
jge 0x4e9693
mov dword [eax], ebx
mov eax, dword [esp + 0x34]
inc edi
cmp edi, eax
jl 0x4e965a
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], vtable.VectorClass_class_TechnoTypeClass_const__.0
cmp eax, ebp
je 0x4e96c1
mov cl, byte [esp + 0x31]
test cl, cl
je 0x4e96c1
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x31], 0
mov ecx, dword [0x84e498]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4e95da
mov eax, dword [0xa1e168]
xor edi, edi
test eax, eax
jle 0x4e972d
mov eax, dword [0xa1e15c]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x4e9723
push ebp
mov ecx, esi
call fcn.004c87b0
test al, al
je 0x4e9723
mov ecx, dword [esi + 0x5a8]
mov edx, dword [ecx + 0xb90]
mov ecx, dword [esp + edx*4 + 0x3c]
test ecx, ecx
lea eax, [esp + edx*4 + 0x3c]
jle 0x4e9723
dec ecx
mov dword [eax], ecx
mov eax, dword [0xa1e168]
inc edi
cmp edi, eax
jl 0x4e96f0
or eax, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov eax, dword [0xa27f90]
xor esi, esi
test eax, eax
mov dword [esp + 0x1c], SysReAllocString
jle 0x4e97fa
mov ebp, dword [esp + esi*4 + 0x3c]
test ebp, ebp
jle 0x4e97e8
mov eax, dword [0xa27f84]
mov edi, dword [esp + 0x14]
push 0
push 0
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, edi
call fcn.004e2ba0
test eax, eax
je 0x4e97e8
mov edx, dword [0xa27f84]
add edi, 0x24
mov ecx, dword [edx + esi*4]
mov edx, dword [esp + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x84]
mov edx, eax
mov eax, dword [edi]
push edi
mov dword [esp + 0x1c], edx
call dword [eax + 0x18]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jg 0x4e97e8
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x4e97b3
cmp eax, ebp
jge 0x4e97b9
mov dword [esp + 0x20], ebp
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov dword [esp + ebx*4 + 0x35c], esi
inc ebx
cmp eax, 0xffffffff
je 0x4e97d9
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + esi*4 + 0x1cc]
cmp eax, edx
jge 0x4e97e8
mov eax, dword [esp + esi*4 + 0x1cc]
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
mov eax, dword [0xa27f90]
inc esi
cmp esi, eax
jl 0x4e9751
mov ebp, dword [esp + 0x14]
mov ecx, dword [0xa255a0]
push SysReAllocString
push 0
add ecx, 0x218
call fcn.0062fcf0
mov edx, dword [ebp + 0xc8]
mov dword [esp + 0x18], eax
mov eax, dword [0x821b68]
fild dword [esp + 0x18]
mov ecx, dword [eax + 0x105c]
fmul qword [0x787280]
fild dword [ecx + edx*4]
fmul qword [0x787518]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4e985d
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ebp + 0x5544], edx
pop ebx
mov eax, 0xf
pop ebp
add esp, 0x4dc
ret
test ebx, ebx
je 0x4e9882
mov eax, dword [0xa255a0]
dec ebx
push ebx
push 0
lea ecx, [eax + 0x218]
call fcn.0062fcf0
mov ecx, dword [esp + eax*4 + 0x35c]
mov dword [ebp + 0x5544], ecx
pop edi
pop esi
pop ebx
mov eax, 0xf
pop ebp
add esp, 0x4dc
ret