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

Disassembly:
push 0xffffffffffffffff
push 0x617576
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
mov ebp, dword [esp + 0x170]
push esi
mov ebx, ecx
lea eax, [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x30]
xor esi, esi
push ebp
push ecx
mov dword [esp + 0x20], esi
call fcn.004b4d60
add esp, 0xc
lea ecx, [ebx + 0x98]
push eax
mov dword [esp + 0x174], esi
call fcn.004044c0
lea esi, [ebx + 0x8c]
push eax
mov ecx, esi
call fcn.004044c0
or edi, 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x170], edi
call fcn.004207d0
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push ebp
push eax
call fcn.004b4d60
add esp, 0xc
lea ecx, [ebx + 0xa4]
push eax
mov dword [esp + 0x174], 1
call fcn.004044c0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x170], edi
call fcn.004207d0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push ebp
push edx
call fcn.004b4d60
add esp, 0xc
lea ecx, [ebx + 0xbc]
push eax
mov dword [esp + 0x174], 2
call fcn.004044c0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x170], edi
call fcn.004207d0
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [eax + ebp]
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], ecx
movzx dx, byte [eax + ebp]
inc eax
mov word [ebx + 0x84], dx
mov dword [esp + 0x14], eax
movzx cx, byte [eax + ebp]
inc eax
mov word [ebx + 0x86], cx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x2c]
movzx dx, byte [eax + ebp]
inc eax
sub esp, 8
mov dword [esp + 0x18], esp
mov edi, esp
mov word [ebx + 0x88], dx
mov dword [esp + 0x1c], eax
push esi
call fcn.00435600
push edi
mov ecx, eax
mov dword [esp + 0x17c], 3
call fcn.00401a00
sub esp, 8
lea edi, [ebx + 0x28]
mov ecx, esp
mov dword [esp + 0x20], esp
push str.gamevariant
mov dword [esp + 0x5c], edi
call fcn.00405b90
mov ecx, edi
call fcn.00443640
lea ecx, [esp + 0x2c]
mov dword [esp + 0x170], 0xffffffff
call fcn.004207d0
sub esp, 8
lea eax, [ebx + 0xa4]
mov dword [esp + 0x18], esp
mov dword [esp + 0x20], esp
push eax
lea ecx, [esp + 0x38]
call fcn.00435600
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x178], 4
push ecx
mov ecx, eax
call fcn.00401a00
sub esp, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push str.gametype
call fcn.00405b90
mov ecx, edi
call fcn.00443640
lea ecx, [esp + 0x2c]
mov dword [esp + 0x170], 0xffffffff
call fcn.004207d0
sub esp, 8
lea eax, [ebx + 0xbc]
mov dword [esp + 0x18], esp
mov dword [esp + 0x20], esp
push eax
lea ecx, [esp + 0x38]
call fcn.00435600
mov edx, dword [esp + 0x20]
mov ecx, eax
push edx
mov dword [esp + 0x17c], 5
call fcn.00401a00
sub esp, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push str.mapname
call fcn.00405b90
mov ecx, edi
call fcn.00443640
lea ecx, [esp + 0x2c]
mov dword [esp + 0x170], 0xffffffff
call fcn.00402ab0
sub esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], esp
mov dword [esp + 0x20], esp
call fcn.00403f90
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x178], 6
push ecx
push 0x6a2a8c
push eax
call fcn.004fda00
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [edx], ecx
add esp, 4
mov dword [edx + 4], eax
mov ecx, esp
mov dword [esp + 0x20], esp
push str.serverstatus
call fcn.00405b90
mov ecx, edi
call fcn.00443640
lea ecx, [esp + 0x2c]
mov dword [esp + 0x170], 0xffffffff
call fcn.00402ab0
mov edi, str.base
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 4]
repne scasb al, byte es:[edi]
mov eax, dword [esi]
not ecx
dec ecx
sub edx, eax
cmp edx, ecx
jne 0x4b515b
mov esi, eax
mov edi, str.base
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4b515b
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x90]
cmp eax, ecx
je 0x4b513c
mov byte [eax], 0
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x90], ecx
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x9c]
cmp eax, ecx
je 0x4b515b
mov byte [eax], 0
mov edx, dword [ebx + 0x98]
mov dword [ebx + 0x9c], edx
mov eax, dword [esp + 0x50]
mov ecx, eax
mov edx, eax
and cl, 1
neg cl
sbb ecx, ecx
and al, 4
neg ecx
shr edx, 1
inc ecx
and dl, 1
neg al
sbb eax, eax
mov dword [ebx + 0xcc], ecx
neg eax
inc eax
sub esp, 8
lea ecx, [esp + 0x34]
mov byte [ebx + 0xc8], dl
mov dword [ebx + 0xd0], eax
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.00403f90
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x178], 7
mov cx, word [edx + ebp]
push ecx
push 0x697250
push eax
call fcn.004fda00
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add esp, 4
sub eax, ecx
mov dword [esi], ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x6a20ac
mov dword [esi + 4], eax
call fcn.00405b90
mov ecx, dword [esp + 0x58]
call fcn.00443640
or edi, 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x170], edi
call fcn.00402ab0
mov esi, dword [esp + 0x14]
sub esp, 8
add esi, 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esp
mov esi, esp
push eax
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.004b4d60
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add esp, 4
sub eax, ecx
mov dword [esi], ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.serverinfo
mov dword [esp + 0x184], 8
mov dword [esi + 4], eax
call fcn.00405b90
mov ecx, dword [esp + 0x58]
call fcn.00443640
lea ecx, [esp + 0x2c]
mov dword [esp + 0x170], edi
call fcn.00402ab0
mov eax, dword [esp + 0x14]
mov si, word [eax + ebp]
add eax, 2
mov dword [esp + 0x14], eax
and esi, 0xffff
lea edx, [esi + eax]
mov eax, dword [esp + 0x17c]
cmp edx, eax
jne 0x4b5d1d
lea eax, [esp + 0x5f]
lea ecx, [esp + 0x3c]
push eax
call fcn.00482bc0
mov edx, dword [esp + 0x14]
push 0x697cb4
sub esp, 0xc
add edx, ebp
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
push edx
mov dword [esp + 0x188], 9
call fcn.004b5e40
lea ecx, [esp + 0x4c]
call fcn.004fea50
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
xor edi, edi
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
mov dword [esp + 0x54], edi
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x50], edi
test edx, edx
jle 0x4b5c95
lea ecx, [esp + 0x63]
push ecx
lea ecx, [esp + 0x20]
call fcn.00482bc0
mov esi, dword [esp + 0x58]
push 0x6a2e28
push esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x178], 0xa
call fcn.00482bd0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00435600
lea ecx, [esp + 0x2c]
call fcn.004fea50
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x4b53b0
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, ebp
mov eax, 0x2aaaaaab
sub edx, ecx
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jne 0x4b5bb0
call fcn.004fde70
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov edi, eax
sub ecx, edx
mov eax, 0x2aaaaaab
mov dword [esp + 0x50], edi
imul ecx
sar edx, 1
mov ecx, edx
lea eax, [esi + edi + 1]
shr ecx, 0x1f
add edx, ecx
cmp eax, edx
jg 0x4b5bd7
mov dword [esp + 0x54], 1
mov dword [esp + 0x28], 0
jmp 0x4b5b25
cmp eax, 1
jne 0x4b54e6
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 2
jne 0x4b5c04
sub esp, 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], esp
mov esi, esp
push 0
call fcn.00482bd0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [esi], ecx
lea ecx, [esp + 0x158]
mov dword [esi + 4], eax
call fcn.00403f90
mov ecx, dword [esp + 0x30]
sub esp, 8
mov edx, esp
mov dword [esp + 0x20], esp
push edx
push ecx
push str.team_t_u
push eax
mov byte [esp + 0x190], 0xe
call fcn.004fda00
add esp, 0xc
mov ecx, eax
call fcn.00401a00
mov ebp, dword [esp + 0x58]
mov ecx, ebp
call fcn.00443640
lea ecx, [esp + 0x150]
mov byte [esp + 0x170], 0xa
call fcn.00402ab0
sub esp, 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], esp
mov esi, esp
push 1
call fcn.00482bd0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [esi], ecx
lea ecx, [esp + 0x164]
mov dword [esi + 4], eax
call fcn.00403f90
mov ecx, dword [esp + 0x30]
sub esp, 8
mov edx, esp
mov dword [esp + 0x20], esp
push edx
push ecx
push str.score_t_u
push eax
mov byte [esp + 0x190], 0xf
call fcn.004fda00
add esp, 0xc
mov ecx, eax
call fcn.00401a00
mov ecx, ebp
call fcn.00443640
lea ecx, [esp + 0x15c]
mov byte [esp + 0x170], 0xa
call fcn.00402ab0
mov eax, dword [esp + 0x28]
inc eax
cmp eax, edi
mov dword [esp + 0x28], eax
jl 0x4b5b25
mov dword [esp + 0x54], 2
jmp 0x4b5b25
cmp eax, 2
jne 0x4b5556
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, ebp
mov eax, 0x2aaaaaab
sub edx, ecx
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jne 0x4b5c22
call fcn.004fde70
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov edi, eax
sub ecx, edx
mov eax, 0x2aaaaaab
mov dword [esp + 0x50], edi
imul ecx
sar edx, 1
mov ecx, edx
lea eax, [esi + edi + 1]
shr ecx, 0x1f
add edx, ecx
cmp eax, edx
jne 0x4b5c42
mov dword [esp + 0x54], 3
mov dword [esp + 0x28], 0
jmp 0x4b5b25
cmp eax, 3
jne 0x4b5b25
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 3
jne 0x4b5c68
lea ecx, [esp + 0x94]
call fcn.004047a0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x170], 0x13
call fcn.00403f90
lea ecx, [esp + 0xac]
call fcn.0042d2a0
lea ecx, [esp + 0xe4]
mov byte [esp + 0x170], 0x15
mov byte [esp + 0xd0], 0
call fcn.00403f90
lea ecx, [esp + 0xf0]
mov byte [esp + 0x170], 0x16
call fcn.00403f90
lea ecx, [esp + 0xfc]
mov byte [esp + 0x170], 0x17
call fcn.00403f90
lea ecx, [esp + 0x8c]
mov byte [esp + 0x170], 0x18
call fcn.004dc020
mov eax, dword [esp + 0x1c]
mov edi, 1
mov byte [esp + 0x170], 0x19
mov dword [esp + 0x4c], 0
mov ebp, dword [eax]
mov edx, dword [eax + 4]
sub edx, ebp
cmp edx, edi
jle 0x4b59c0
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0xb0]
mov al, dl
jmp 0x4b5649
mov edx, dword [esp + 0xa4]
mov cl, byte [edi + ebp]
cmp cl, 0xe
mov byte [esp + 0x18], cl
jne 0x4b5696
mov dl, byte [esp + 0x4c]
mov cl, byte [esp + 0xa0]
sub al, dl
mov dword [esp + 0x7c], 0xff0000
sub al, cl
mov byte [esp + 0x78], al
mov eax, dword [esp + 0xb4]
cmp esi, eax
je 0x4b5681
lea eax, [esp + 0x78]
jmp 0x4b56d2
push 1
lea ecx, [esp + 0x66]
push 1
push ecx
lea edx, [esp + 0x84]
jmp 0x4b5716
cmp cl, 8
jne 0x4b5744
mov dl, byte [esp + 0x4c]
mov cl, byte [esp + 0xa0]
sub al, dl
mov dword [esp + 0x84], 0x1000000
sub al, cl
mov byte [esp + 0x80], al
mov eax, dword [esp + 0xb4]
cmp esi, eax
je 0x4b5706
lea eax, [esp + 0x80]
push eax
push esi
call fcn.004c12a0
mov esi, dword [esp + 0xb8]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
add esp, 8
add esi, 8
sub eax, ecx
mov dword [esp + 0xb0], esi
mov dword [esp + 0x4c], eax
jmp 0x4b59a5
push 1
lea ecx, [esp + 0x61]
push 1
push ecx
lea edx, [esp + 0x8c]
push edx
push esi
lea ecx, [esp + 0xc0]
call fcn.004370a0
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
mov esi, dword [esp + 0xb0]
sub eax, ecx
mov dword [esp + 0x4c], eax
jmp 0x4b59a5
cmp cl, 0xb
jne 0x4b57fb
mov dl, byte [esp + 0x4c]
mov cl, al
sub cl, dl
mov dl, byte [esp + 0xa0]
sub cl, dl
mov dword [esp + 0x74], 0x8000
mov byte [esp + 0x70], cl
mov ecx, dword [esp + 0xb4]
cmp esi, ecx
je 0x4b57b9
test esi, esi
mov ecx, esi
je 0x4b5796
mov eax, dword [esp + 0x70]
mov dword [ecx], eax
mov edx, dword [esp + 0x74]
mov dword [ecx + 4], edx
mov esi, dword [esp + 0xb0]
mov al, byte [esp + 0xa4]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
add esi, 8
sub ecx, edx
mov dword [esp + 0xb0], esi
mov dword [esp + 0x4c], ecx
jmp 0x4b59ac
push 1
lea eax, [esp + 0x64]
push 1
lea ecx, [esp + 0x78]
push eax
push ecx
push esi
lea ecx, [esp + 0xc0]
call fcn.004370a0
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
mov esi, dword [esp + 0xb0]
mov al, byte [esp + 0xa4]
sub ecx, edx
mov dword [esp + 0x4c], ecx
jmp 0x4b59ac
cmp cl, 0x11
je 0x4b59ac
cmp cl, 0x20
jb 0x4b587e
mov esi, dword [esp + 0xa8]
lea eax, [edx + 1]
cmp eax, esi
jne 0x4b585d
mov eax, edx
mov edx, dword [esp + 0xa0]
sub eax, edx
mov dword [esp + 0x88], 1
cmp eax, 1
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x88]
jb 0x4b5841
lea ecx, [esp + 0x10]
mov ecx, dword [ecx]
add ecx, eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.00421240
mov cl, byte [esp + 0x18]
mov edx, dword [esp + 0xa4]
mov byte [edx + 1], 0
mov edx, dword [esp + 0xa4]
mov byte [edx], cl
mov eax, dword [esp + 0xa4]
inc eax
mov dword [esp + 0xa4], eax
jmp 0x4b599e
lea eax, [esp + 0x5e]
lea ecx, [esp + 0x64]
push eax
mov byte [esp + 0x174], 0x1a
call fcn.00482bc0
push 8
mov byte [esp + 0x174], 0x1c
call fcn.0050d330
lea ecx, [eax + 8]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
add esp, 4
mov byte [eax], 0
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x64]
and esi, 0xff
mov byte [esp + 0x170], 0x1d
push esi
push str.Unknown_Tribes_2_name_escape_code:_0x_02X
push edx
call fcn.004fda00
mov eax, dword [eax]
mov edx, dword [ebx]
add esp, 0xc
mov ecx, ebx
push eax
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
sub ecx, eax
mov byte [esp + 0x170], 0x1e
push ecx
push eax
lea ecx, [esp + 0x74]
call fcn.00402b70
lea edx, [esp + 0x3b]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x174], 0x1f
call fcn.00482bc0
push 8
mov byte [esp + 0x174], 0x21
call fcn.0050d330
lea ecx, [eax + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
add esp, 4
mov byte [eax], 0
push esi
lea edx, [esp + 0x30]
push str.__02X_
push edx
mov byte [esp + 0x17c], 0x22
call fcn.004fda00
mov dl, byte [esp + 0x47]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
add esp, 0xc
mov byte [esp + 0x3a], dl
lea edx, [esp + 0x3a]
push edx
push ecx
push eax
lea ecx, [esp + 0xac]
call fcn.00404c60
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x170], 0x23
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00402b70
mov byte [esp + 0x170], 0x19
mov esi, dword [esp + 0xb0]
mov al, byte [esp + 0xa4]
mov ecx, dword [esp + 0x1c]
inc edi
mov ebp, dword [ecx]
mov edx, dword [ecx + 4]
sub edx, ebp
cmp edi, edx
jl 0x4b5642
mov eax, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa0]
sub eax, ebp
lea ecx, [esp + 0xac]
push eax
call fcn.004fba80
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xf0]
inc eax
mov dword [esp + 0x28], eax
mov byte [esp + 0x8c], al
mov eax, dword [esp + 0x1c]
add eax, 0xc
cmp eax, ecx
je 0x4b5a52
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov esi, dword [esp + 0xf0]
cmp eax, ebp
je 0x4b5a28
cmp esi, dword [esp + 0xf4]
je 0x4b5a24
mov dl, byte [eax]
inc eax
mov byte [esi], dl
inc esi
cmp eax, ebp
jne 0x4b5a0f
jmp 0x4b5a28
cmp eax, ebp
jne 0x4b5a3f
mov eax, dword [esp + 0xf4]
lea ecx, [esp + 0xf0]
push eax
push esi
call fcn.004045c0
jmp 0x4b5a52
lea ecx, [esp + 0x61]
push ecx
push ebp
push eax
lea ecx, [esp + 0xfc]
call fcn.00436cb0
mov edx, dword [esp + 0x1c]
lea ecx, [edx + 0x18]
call fcn.004fde70
mov ecx, dword [ebx + 0x48]
lea esi, [ebx + 0x40]
mov dword [esp + 0xc0], eax
mov eax, dword [esi + 4]
cmp eax, ecx
je 0x4b5a90
lea ecx, [esp + 0x8c]
push ecx
push eax
call fcn.00491610
mov eax, dword [esi + 4]
add esp, 8
add eax, 0xc4
mov dword [esi + 4], eax
jmp 0x4b5aa9
push 1
lea edx, [esp + 0x60]
push 1
lea ecx, [esp + 0x94]
push edx
push ecx
push eax
mov ecx, esi
call fcn.00435160
lea ecx, [esp + 0xfc]
mov byte [esp + 0x170], 0x28
call fcn.004207d0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x170], 0x27
call fcn.004207d0
lea ecx, [esp + 0xe4]
mov byte [esp + 0x170], 0x26
call fcn.00402ab0
lea ecx, [esp + 0xac]
mov byte [esp + 0x170], 0x25
call fcn.004350f0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x170], 0x24
call fcn.00402ab0
lea ecx, [esp + 0x94]
mov byte [esp + 0x170], 0xa
call fcn.00402ab0
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, ebp
mov byte [esp + 0x170], 0x29
je 0x4b5b4b
mov ecx, esi
call fcn.00402340
add esi, 0xc
cmp esi, ebp
jne 0x4b5b39
mov esi, dword [esp + 0x1c]
test esi, esi
mov byte [esp + 0x170], 0x2a
je 0x4b5b78
mov ecx, dword [esp + 0x24]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
lea ecx, [esp + 0x24]
shr eax, 0x1f
add edx, eax
push edx
push esi
call fcn.00491b20
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
mov esi, dword [esp + 0x58]
mov byte [esp + 0x170], 9
sar edx, 1
mov ecx, edx
inc esi
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x58], esi
cmp esi, edx
jl 0x4b52fc
jmp 0x4b5c95
cmp ecx, ebp
mov byte [esp + 0x170], 0xb
mov esi, ecx
je 0x4b5c84
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, ebp
jne 0x4b5bc2
jmp 0x4b5c84
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, ebp
mov byte [esp + 0x170], 0xc
je 0x4b5c84
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, ebp
jne 0x4b5bef
jmp 0x4b5c84
cmp esi, ebp
mov byte [esp + 0x170], 0xd
je 0x4b5c84
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, ebp
jne 0x4b5c10
jmp 0x4b5c84
cmp ecx, ebp
mov byte [esp + 0x170], 0x10
mov esi, ecx
je 0x4b5c84
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, ebp
jne 0x4b5c30
jmp 0x4b5c84
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, ebp
mov byte [esp + 0x170], 0x11
je 0x4b5c84
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, ebp
jne 0x4b5c56
jmp 0x4b5c84
cmp esi, ebp
mov byte [esp + 0x170], 0x12
je 0x4b5c84
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, ebp
jne 0x4b5c74
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 9
call fcn.00479500
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x58]
cmp eax, edx
je 0x4b5d9b
mov edi, dword [esp + 0x40]
mov esi, ebp
cmp esi, edi
mov dword [esp + 0x170], 0x2b
je 0x4b5ce2
mov ecx, esi
call fcn.00402340
add esi, 0xc
cmp esi, edi
jne 0x4b5cd0
mov esi, dword [esp + 0x3c]
test esi, esi
mov dword [esp + 0x170], 0x2c
je 0x4b5d12
mov ecx, dword [esp + 0x44]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [esp + 0x44]
push edx
push esi
call fcn.00491b20
mov dword [esp + 0x170], 0xffffffff
mov eax, dword [esp + 0x48]
mov esi, dword [eax + 4]
mov ebx, dword [eax]
mov ecx, esi
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
test edx, edx
jle 0x4b5d70
lea edi, [ebx + 0xc]
lea ebp, [esi + 0xc]
mov dword [esp + 0x18], edx
push esi
mov ecx, ebx
call fcn.004044c0
push ebp
mov ecx, edi
call fcn.004044c0
mov eax, dword [esp + 0x18]
add esi, 0x18
add ebp, 0x18
add ebx, 0x18
add edi, 0x18
dec eax
mov dword [esp + 0x18], eax
jne 0x4b5d49
mov ecx, dword [esp + 0x48]
mov esi, ebx
mov edi, dword [ecx + 4]
cmp ebx, edi
je 0x4b5d8d
push 0
mov ecx, esi
call fcn.0041cd60
add esi, 0x18
cmp esi, edi
jne 0x4b5d7d
mov edx, dword [esp + 0x48]
xor al, al
mov dword [edx + 4], ebx
jmp 0x4b5e20
mov ecx, dword [ebx + 0xf0]
mov dword [ebx + 0xf4], 6
or ecx, 0x26a
mov word [ebx + 0xe4], 0
mov dword [ebx + 0xf0], ecx
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp esi, edi
mov dword [esp + 0x170], 0x2d
je 0x4b5de9
mov ecx, esi
call fcn.00402340
add esi, 0xc
cmp esi, edi
jne 0x4b5dd7
mov esi, dword [esp + 0x3c]
test esi, esi
mov dword [esp + 0x170], 0x2e
je 0x4b5e1e
mov ecx, dword [esp + 0x44]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [edx + edx*2]
shl ecx, 2
push ecx
push esi
call fcn.00401ce0
add esp, 8
mov al, 1
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x164
ret 8