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

Disassembly:
sub esp, 0x4dc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x5540], 0xffffffff
jne 0x4e956e
mov eax, dword [0x821b68]
mov ecx, dword [ebp + 0x34]
add ecx, 0x98
lea esi, [eax + 0x9ec]
call fcn.004f8880
mov edx, 1
mov ecx, eax
shl edx, cl
mov ecx, dword [esi + 0x10]
xor eax, eax
test ecx, ecx
jle 0x4e90c3
mov esi, dword [esi + 4]
mov edi, esi
mov ebx, dword [edi]
test dword [ebx + 0x5e8], edx
jne 0x4e9160
inc eax
add edi, 4
cmp eax, ecx
jl 0x4e90ad
xor eax, eax
mov ecx, dword [eax + 0xb90]
push ecx
lea ecx, [ebp + 0x5470]
call fcn.004919a0
mov edx, dword [0x821b68]
mov ebx, eax
lea edi, [ebp + 0x5460]
mov esi, dword [edx + 0x804]
mov eax, dword [esi]
mov ecx, dword [eax + 0xb90]
push ecx
mov ecx, edi
call fcn.004919a0
mov edx, dword [esi + 4]
mov ebp, eax
mov ecx, edi
mov eax, dword [edx + 0xb90]
push eax
call fcn.004919a0
mov edx, dword [esp + 0x10]
add ebp, eax
mov eax, dword [0x821b68]
mov esi, dword [edx + 0x194]
mov edi, dword [eax + 0x10c0]
mov ecx, dword [eax + 0x1414]
cmp esi, edi
jl 0x4e9287
cmp byte [edx + 0x189], 0
jne 0x4e9287
mov esi, dword [0xa255a8]
test esi, esi
jne 0x4e916c
cmp byte [edx + 0x134], 0
jne 0x4e9168
cmp byte [edx + 0x135], 0
jne 0x4e9168
xor dl, dl
jmp 0x4e9172
mov eax, dword [esi + eax*4]
jmp 0x4e90c5
mov dl, 1
jmp 0x4e9172
mov dl, byte [edx + 0x134]
test dl, dl
jne 0x4e9287
imul ecx, ebp
cmp ecx, ebx
jle 0x4e9287
mov ebx, dword [esp + 0x10]
lea esi, [eax + 0x9ec]
mov ecx, dword [ebx + 0x34]
add ecx, 0x98
call fcn.004f8880
mov edx, 1
mov ecx, eax
shl edx, cl
mov ecx, dword [esi + 0x10]
xor eax, eax
test ecx, ecx
jle 0x4e91ca
mov esi, dword [esi + 4]
mov edi, esi
mov ebp, dword [edi]
test dword [ebp + 0x5e8], edx
jne 0x4e9245
inc eax
add edi, 4
cmp eax, ecx
jl 0x4e91b4
xor eax, eax
mov ecx, dword [eax + 0x55c]
mov eax, dword [ebx + 0x11c]
cmp ecx, eax
ja 0x4e9287
mov ebx, dword [esp + 0x10]
mov edx, dword [0x821b68]
mov ecx, dword [ebx + 0x34]
lea esi, [edx + 0x9ec]
add ecx, 0x98
call fcn.004f8880
mov edx, 1
mov ecx, eax
shl edx, cl
mov ecx, dword [esi + 0x10]
xor eax, eax
test ecx, ecx
jle 0x4e9269
mov esi, dword [esi + 4]
mov edi, esi
mov ebp, dword [edi]
test dword [ebp + 0x5e8], edx
jne 0x4e924a
inc eax
add edi, 4
cmp eax, ecx
jl 0x4e9215
xor eax, eax
pop edi
pop esi
pop ebp
mov eax, dword [eax + 0xb90]
mov dword [ebx + 0x5540], eax
mov eax, 0xf
pop ebx
add esp, 0x4dc
ret
mov eax, dword [esi + eax*4]
jmp 0x4e91cc
mov eax, dword [esi + eax*4]
pop edi
pop esi
pop ebp
mov eax, dword [eax + 0xb90]
mov dword [ebx + 0x5540], eax
mov eax, 0xf
pop ebx
add esp, 0x4dc
ret
xor eax, eax
pop edi
pop esi
pop ebp
mov eax, dword [eax + 0xb90]
mov dword [ebx + 0x5540], eax
mov eax, 0xf
pop ebx
add esp, 0x4dc
ret
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 + 0x14], eax
jle 0x4e93c6
mov ecx, dword [0x84e48c]
xor ebx, ebx
mov esi, dword [ecx + eax*4]
cmp esi, ebx
je 0x4e93b3
mov edx, dword [esi + 0x24]
mov ebp, dword [esi + 0x50]
mov cl, byte [edx + 0xab]
test cl, cl
je 0x4e92e5
mov cl, byte [esi + 0x79]
test cl, cl
je 0x4e92fb
mov cl, byte [esi + 0x77]
test cl, cl
jne 0x4e93b3
mov cl, byte [esi + 0x78]
test cl, cl
jne 0x4e93b3
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x2c]
cmp edx, ecx
jne 0x4e93b3
push ebx
push ebx
lea ecx, [esp + 0x2c]
call fcn.004b9ee0
lea edx, [esp + 0x24]
mov ecx, esi
push edx
mov dword [esp + 0x28], vtable.DynamicVectorClass_class_TechnoTypeClass_const__.0
mov dword [esp + 0x3c], 0xa
mov dword [esp + 0x38], ebx
call fcn.006b2d70
mov eax, dword [esp + 0x34]
xor edi, edi
cmp eax, ebx
jle 0x4e9381
mov eax, dword [esp + 0x28]
mov esi, dword [eax + edi*4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x2c]
cmp eax, 0x28
jne 0x4e9378
mov eax, dword [esi + 0xb90]
shl eax, 2
mov edx, dword [esp + eax + 0x3c]
mov ecx, dword [esp + eax + 0x1cc]
inc edx
cmp ebp, ecx
mov dword [esp + eax + 0x3c], edx
lea eax, [esp + eax + 0x1cc]
jge 0x4e9378
mov dword [eax], ebp
mov eax, dword [esp + 0x34]
inc edi
cmp edi, eax
jl 0x4e933f
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], vtable.VectorClass_class_TechnoTypeClass_const__.0
cmp eax, ebx
je 0x4e93a6
mov cl, byte [esp + 0x31]
test cl, cl
je 0x4e93a6
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x31], 0
mov dword [esp + 0x2c], ebx
mov ecx, dword [0x84e498]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4e92bb
mov eax, dword [0x84e4b8]
xor edi, edi
test eax, eax
jle 0x4e9412
mov eax, dword [0x84e4ac]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x4e9408
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004c87b0
test al, al
je 0x4e9408
mov edx, dword [esi + 0x5ac]
mov eax, dword [edx + 0xb90]
mov ecx, dword [esp + eax*4 + 0x3c]
lea eax, [esp + eax*4 + 0x3c]
test ecx, ecx
jle 0x4e9408
dec ecx
mov dword [eax], ecx
mov eax, dword [0x84e4b8]
inc edi
cmp edi, eax
jl 0x4e93d1
mov eax, dword [0xa1e068]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x20], 0xffffffff
test eax, eax
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x1c], SysReAllocString
jle 0x4e94e0
mov ebp, dword [esp + esi*4 + 0x3c]
test ebp, ebp
jle 0x4e94d2
mov ecx, dword [0xa1e05c]
mov edi, dword [esp + 0x10]
push 0
push 0
mov edx, dword [ecx + esi*4]
mov ecx, edi
push edx
call fcn.004e2ba0
test eax, eax
je 0x4e94d2
mov eax, dword [0xa1e05c]
add edi, 0x24
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 0x84]
mov ecx, dword [edi]
mov edx, eax
push edi
mov dword [esp + 0x1c], edx
call dword [ecx + 0x18]
mov edx, dword [esp + 0x18]
cmp edx, eax
jg 0x4e94d2
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x4e949d
cmp eax, ebp
jge 0x4e94a3
mov dword [esp + 0x20], ebp
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov dword [esp + ebx*4 + 0x35c], esi
inc ebx
cmp eax, 0xffffffff
je 0x4e94c3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + esi*4 + 0x1cc]
cmp ecx, eax
jge 0x4e94d2
mov ecx, dword [esp + esi*4 + 0x1cc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ecx
mov eax, dword [0xa1e068]
inc esi
cmp esi, eax
jl 0x4e943b
mov edx, dword [0xa255a0]
push SysReAllocString
push 0
lea ecx, [edx + 0x218]
call fcn.0062fcf0
mov esi, dword [esp + 0x10]
mov ecx, dword [0x821b68]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov eax, dword [esi + 0xc8]
mov edx, dword [ecx + 0x105c]
fmul qword [0x787280]
fild dword [edx + eax*4]
fmul qword [0x787518]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4e9548
mov eax, dword [esp + 0x14]
pop edi
mov dword [esi + 0x5540], eax
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x4dc
ret
test ebx, ebx
je 0x4e956e
mov ecx, dword [0xa255a0]
dec ebx
push ebx
push 0
add ecx, 0x218
call fcn.0062fcf0
mov edx, dword [esp + eax*4 + 0x35c]
mov dword [esi + 0x5540], edx
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x4dc
ret