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

Disassembly:
sub esp, 0x19c
mov al, byte [0x798628]
push ebx
push ebp
push esi
test al, al
push edi
mov byte [esp + 0x10], 0
jbe 0x45911d
mov ebx, dword [esp + 0x10]
push ebx
call fcn.004a4660
mov edi, eax
add esp, 4
mov esi, dword [edi + 8]
test esi, esi
je 0x458f93
mov eax, dword [esi + 0x90]
mov ebp, dword [esi + 0x7c]
mov ebx, 1
cmp eax, ebx
je 0x458eea
push str.Unit_doesnt_know_its_a_unit_
push str.Model.cpp
call fcn.0042b590
add esp, 8
cmp word [esi + 0x8c], 0xffff
jne 0x458f07
push str.Index_is_illegal_
push str.Model.cpp
call fcn.0042b590
add esp, 8
mov ax, word [esi + 0x8c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
call fcn.00497b90
add esp, 0xc
test al, al
jne 0x458f85
xor edx, edx
mov dl, byte [esi + 0x18]
shl edx, 8
mov al, byte [edx + 0x77e27d]
cmp al, 1
jne 0x458f3b
dec byte [edi + 0x245b8]
jmp 0x458f4d
cmp al, 2
jne 0x458f4d
mov eax, dword [esi + 8]
test ah, 8
jne 0x458f4d
dec byte [edi + 0x245c0]
xor eax, eax
mov al, byte [esi + 0x18]
shl eax, 8
cmp byte [eax + 0x77e27d], 2
jne 0x458f64
dec byte [edi + 0x2688d]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov cl, byte [esi + 0x18]
push esi
lea eax, [edi + ecx*4 + 0x24628]
mov ecx, dword [edi + ecx*4 + 0x24628]
dec ecx
mov dword [eax], ecx
mov ecx, edi
call fcn.0046bdb0
test ebp, ebp
mov esi, ebp
jne 0x458ec6
mov ebx, dword [esp + 0x10]
mov ebp, dword [edi + 0x10]
test ebp, ebp
je 0x459080
mov eax, dword [ebp + 0x90]
mov ebx, dword [ebp + 0x7c]
mov esi, 2
cmp eax, esi
je 0x458fde
push str.Building_doesnt_think_its_a_building_
push str.Model.cpp
call fcn.0042b590
mov eax, dword [ebp + 0x90]
add esp, 8
cmp eax, esi
je 0x458fde
push str.Building_is_not_a_building
push str.MODEL.CPP
call fcn.0042b590
add esp, 8
mov dx, word [ebp + 0x8c]
mov eax, dword [esp + 0x10]
push edx
push eax
push ebp
call fcn.0049b7f0
add esp, 0xc
test al, al
jne 0x459072
test dword [ebp + 0x28], 0x20000
je 0x459063
xor eax, eax
mov al, byte [ebp + 0x34]
mov ecx, eax
shl ecx, 5
add ecx, eax
lea edx, [eax + ecx*2]
mov cl, byte [edx*4 + 0x6dc59c]
cmp cl, 4
mov cl, byte [edi + 0x24252]
push ecx
push 0
push eax
jne 0x459051
call fcn.00442be0
mov dl, byte [edi + 0x24252]
mov esi, eax
mov eax, dword [0x6d60e8]
add esp, 0xc
and eax, 0xff
push edx
push eax
call fcn.00442bb0
sub esi, eax
add esp, 8
shr esi, 1
push esi
jmp 0x45905c
call fcn.00442be0
add esp, 0xc
shr eax, 1
push eax
mov ecx, edi
call fcn.0046c7b0
push ebp
mov ecx, edi
call fcn.0046bdb0
mov ecx, edi
call fcn.0046be50
test ebx, ebx
mov ebp, ebx
jne 0x458f9e
mov ebx, dword [esp + 0x10]
mov esi, dword [edi + 0x18]
test esi, esi
je 0x4590c3
mov eax, dword [esi + 0x90]
mov ebp, dword [esi + 0x7c]
cmp eax, 3
je 0x4590a7
push str.Bullet_doesnt_think_its_a_bullet_
push str.Model.cpp
call fcn.0042b590
add esp, 8
push ebx
push esi
call fcn.0049be60
add esp, 8
test al, al
jne 0x4590bd
push esi
mov ecx, edi
call fcn.0046bdb0
test ebp, ebp
mov esi, ebp
jne 0x459087
mov esi, dword [edi + 0x20]
test esi, esi
je 0x459106
mov eax, dword [esi + 0x90]
mov ebp, dword [esi + 0x7c]
cmp eax, 4
je 0x4590ea
push str.Explosion_doesnt_think_its_an_explosion_
push str.Model.cpp
call fcn.0042b590
add esp, 8
push ebx
push esi
call fcn.0049dd80
add esp, 8
test al, al
jne 0x459100
push esi
mov ecx, edi
call fcn.0046bdb0
test ebp, ebp
mov esi, ebp
jne 0x4590ca
mov cl, byte [esp + 0x10]
mov al, byte [0x798628]
inc cl
cmp cl, al
mov byte [esp + 0x10], cl
jb 0x458eac
mov cl, byte [0x7984a8]
test cl, cl
je 0x459445
test al, al
mov byte [esp + 0x10], 0
jbe 0x459297
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], 0
push edi
call fcn.004a4660
mov eax, dword [eax + 8]
add esp, 4
test eax, eax
je 0x4591a2
mov cl, byte [eax + 0x28]
mov dl, byte [eax + 0x19]
mov byte [esp + 0x17], cl
mov cl, byte [eax + 0x1d]
mov byte [esp + 0x16], cl
mov byte [eax + 0x19], 0
mov byte [eax + 0x1d], 0
mov byte [eax + 0x28], 0
mov ecx, eax
mov esi, 0x7c
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov bl, byte [ecx]
add ebp, ebx
inc ecx
dec esi
mov dword [esp + 0x18], ebp
jne 0x459178
mov cl, byte [esp + 0x16]
mov byte [eax + 0x19], dl
mov dl, byte [esp + 0x17]
mov byte [eax + 0x1d], cl
mov byte [eax + 0x28], dl
mov eax, dword [eax + 0x7c]
test eax, eax
jne 0x459154
push edi
xor ebp, ebp
call fcn.004a4660
mov eax, dword [eax + 0x10]
add esp, 4
test eax, eax
je 0x4591e8
mov cl, byte [eax + 0x38]
mov dl, byte [eax + 0x35]
mov byte [esp + 0x16], cl
mov byte [eax + 0x35], 0
mov byte [eax + 0x38], 0
mov ecx, eax
mov esi, 0x54
xor ebx, ebx
mov bl, byte [ecx]
add ebp, ebx
inc ecx
dec esi
jne 0x4591cd
mov byte [eax + 0x35], dl
mov dl, byte [esp + 0x16]
mov byte [eax + 0x38], dl
mov eax, dword [eax + 0x7c]
test eax, eax
jne 0x4591b4
push edi
xor esi, esi
call fcn.004a4660
mov eax, dword [eax + 0x18]
add esp, 4
test eax, eax
je 0x459216
mov ecx, eax
mov edi, 0x48
xor edx, edx
mov dl, byte [ecx]
add esi, edx
inc ecx
dec edi
jne 0x459201
mov eax, dword [eax + 0x7c]
test eax, eax
jne 0x4591fa
mov edi, dword [esp + 0x10]
push edi
call fcn.004a4660
mov eax, dword [eax + 0x20]
add esp, 4
test eax, eax
je 0x459242
mov ecx, eax
mov edi, 0x38
xor edx, edx
mov dl, byte [ecx]
add esi, edx
inc ecx
dec edi
jne 0x45922d
mov eax, dword [eax + 0x7c]
test eax, eax
jne 0x459226
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea ecx, [esi + ebp]
mov edx, dword [0x5173f4]
add ecx, eax
push ecx
push esi
push 0
push ebp
and edi, 0xff
push eax
push edi
push edx
lea eax, [esp + 0x38]
push str._06d:_S:_01d_U:_06d_B:_06d_E:_06d_BUL:_06d_OVERALL:_07d_n
push eax
call fcn.004b0670
add esp, 0x24
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.0045b830
mov cl, byte [esp + 0x18]
mov al, byte [0x798628]
add esp, 8
inc cl
cmp cl, al
mov byte [esp + 0x10], cl
jb 0x459138
xor bl, bl
test al, al
mov byte [esp + 0x10], bl
jbe 0x459445
mov edx, dword [esp + 0x10]
push edx
call fcn.004a4660
mov esi, dword [eax + 8]
add esp, 4
test esi, esi
je 0x459432
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
xor eax, eax
mov al, byte [esi + 0x18]
push eax
xor eax, eax
mov ax, word [esi + 0xc]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
push ecx
xor ecx, ecx
push edx
mov cx, word [esi + 0x8c]
push eax
push ecx
lea edx, [esp + 0x3c]
push str.Unit__d:_S:_d_h:_d_f:_08x_EI:_d_S:_d_OS:_d_T:_d_n
push edx
call fcn.004b0670
add esp, 0x28
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0045b830
xor ecx, ecx
add esp, 8
mov cl, byte [esi + 0x25]
xor edx, edx
mov dl, byte [esi + 0x24]
push ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 0x20]
mov cl, byte [esi + 0x1e]
push edx
push eax
xor edx, edx
push ecx
mov dl, byte [esi + 0x1c]
xor eax, eax
mov al, byte [esi + 0x1b]
xor ecx, ecx
mov cl, byte [esi + 0x1a]
push edx
push eax
push ecx
lea edx, [esp + 0x38]
push str.TS:_d_TTS:_d_RR:_d_CAF:_d_CAT:_d_L:_d_CAD:_d_n
push edx
call fcn.004b0670
add esp, 0x24
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0045b830
xor ecx, ecx
add esp, 8
mov cl, byte [esi + 0x2e]
xor edx, edx
mov dl, byte [esi + 0x2d]
push ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 0x2c]
mov cl, byte [esi + 0x2b]
push edx
push eax
xor edx, edx
push ecx
mov dl, byte [esi + 0x2a]
xor eax, eax
mov al, byte [esi + 0x29]
xor ecx, ecx
mov cl, byte [esi + 0x27]
push edx
push eax
push ecx
xor edx, edx
lea eax, [esp + 0x38]
mov dl, byte [esi + 0x26]
push edx
push str.ES:_d_S:_d_S:_d_LA:_d_LF:_d_LM:_d_OS:_d_DT:_d_n
push eax
call fcn.004b0670
add esp, 0x28
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.0045b830
xor edx, edx
add esp, 8
mov dx, word [esi + 0x5a]
xor eax, eax
mov ax, word [esi + 0x58]
xor ecx, ecx
mov cl, byte [esi + 0x31]
push edx
push eax
xor edx, edx
mov dx, word [esi + 0x32]
push ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 0x30]
mov cl, byte [esi + 0x2f]
push edx
push eax
push ecx
lea edx, [esp + 0x34]
push str.ED:_d_AS:_d_AI:_d_S:_d__RI:_d_RPI:_d_n
push edx
call fcn.004b0670
add esp, 0x20
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0045b830
xor ecx, ecx
add esp, 8
mov cl, byte [esi + 0x7a]
xor edx, edx
mov dx, word [esi + 0x78]
push ecx
xor eax, eax
xor ecx, ecx
mov ax, word [esi + 0x76]
mov cl, byte [esi + 0x75]
push edx
push eax
push ecx
lea edx, [esp + 0x2c]
push str.RM:_d_RTS:_d_RRD:_d_RB:_d_n
push edx
call fcn.004b0670
add esp, 0x18
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0045b830
mov esi, dword [esi + 0x7c]
add esp, 8
test esi, esi
jne 0x4592bd
mov al, byte [0x798628]
inc bl
cmp bl, al
mov byte [esp + 0x10], bl
jb 0x4592a5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret