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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6169e3
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x124
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x4ae506
mov eax, dword [ebp + 0xf0]
mov dword [ebp + 0xf4], 1
or al, 0x80
mov dword [ebp + 0xf0], eax
jmp 0x4af1a3
mov ebx, dword [esp + 0x144]
cmp eax, 9
jb 0x4ae53f
mov ecx, 9
mov edi, str.splitnum
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4ae53f
mov ecx, dword [esp + 0x148]
add ebx, 9
add ecx, 0xfffffff7
push ecx
push ebx
mov ecx, ebp
call fcn.004accd0
jmp 0x4af1a5
xor eax, eax
mov dword [esp + 0x14], eax
mov cl, byte [ebx]
test cl, cl
mov byte [esp + 0x13], al
mov byte [esp + 0x12], al
je 0x4ae646
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push ebx
push eax
call fcn.004ae220
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp ecx, eax
mov dword [esp + 0x13c], esi
je 0x4ae62e
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push ebx
push eax
call fcn.004ae220
add esp, 0xc
mov ecx, dword [esp + 0x148]
mov eax, dword [esp + 0x14]
cmp eax, ecx
mov byte [esp + 0x13c], 1
ja 0x4ae693
sub esp, 8
lea ecx, [esp + 0x34]
mov eax, esp
mov dword [esp + 0x4c], esp
push eax
call fcn.00401a00
sub esp, 8
lea ecx, [esp + 0x28]
mov edx, esp
mov dword [esp + 0x54], esp
push edx
call fcn.00401a00
lea ecx, [ebp + 0x28]
call fcn.00443640
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 0
call fcn.004207d0
lea ecx, [esp + 0x18]
mov dword [esp + 0x13c], 0xffffffff
call fcn.004207d0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ebx
push ecx
call fcn.004ae220
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp edx, eax
mov dword [esp + 0x13c], esi
jne 0x4ae583
lea ecx, [esp + 0x18]
mov dword [esp + 0x13c], 0xffffffff
call fcn.004207d0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x148]
lea ecx, [eax + 2]
cmp ecx, edx
jae 0x4aebed
mov cl, byte [eax + ebx + 2]
test cl, cl
je 0x4aebed
mov cl, byte [eax + ebx]
inc eax
mov dword [esp + 0x14], eax
movzx dx, byte [eax + ebx]
inc eax
mov word [esp + 0x24], dx
test cl, cl
mov dword [esp + 0x14], eax
je 0x4ae6cc
mov eax, dword [ebp]
push str.CServerQuery::Query_GS2:_PlayerUnknown_not_null
mov ecx, ebp
call dword [eax + 0x1c]
xor al, al
jmp 0x4af1a5
mov eax, dword [ebp]
push str.CServerQuery::Query_GS2:_Invalid_rules_data
mov ecx, ebp
call dword [eax + 0x1c]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 0
call fcn.004207d0
lea ecx, [esp + 0x18]
mov dword [esp + 0x13c], 0xffffffff
call fcn.004207d0
xor al, al
jmp 0x4af1a5
lea ecx, [esp + 0x2b]
push ecx
lea ecx, [esp + 0x30]
call fcn.00482bc0
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push ebx
push eax
mov dword [esp + 0x148], 2
call fcn.004ae220
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
mov byte [esp + 0x13c], 3
je 0x4ae80f
mov edx, dword [esp + 0x148]
mov eax, dword [esp + 0x14]
cmp eax, edx
ja 0x4aeb46
lea eax, [esp + 0x60]
push 2
push eax
lea ecx, [esp + 0x20]
call fcn.004ae140
mov edx, eax
mov edi, 0x6a29dc
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [edx]
mov edx, dword [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, esi
cmp edx, ecx
jne 0x4ae75f
mov edi, 0x6a29dc
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov byte [esp + 0x13], 1
je 0x4ae764
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x60]
call fcn.00402ab0
mov al, byte [esp + 0x13]
test al, al
je 0x4ae78c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
sub eax, ecx
dec eax
add eax, ecx
lea ecx, [esp + 0x18]
push eax
call fcn.004be450
mov eax, dword [esp + 0x1c]
cmp byte [eax - 1], 0x5f
jne 0x4aeba6
mov ecx, dword [esp + 0x18]
sub eax, ecx
lea ecx, [esp + 0x4c]
dec eax
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00482090
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 6
call fcn.004bf3f0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x13c], 3
call fcn.00402ab0
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 2
call fcn.00402ab0
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push ebx
push eax
call fcn.004ae220
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
mov byte [esp + 0x13c], 3
jne 0x4ae710
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 2
call fcn.004207d0
mov eax, dword [esp + 0x24]
xor ebx, ebx
and eax, 0xffff
mov dword [esp + 0x24], eax
jbe 0x4aea3a
mov edi, dword [esp + 0x144]
lea ecx, [esp + 0x78]
call fcn.004047a0
lea ecx, [esp + 0x84]
mov byte [esp + 0x13c], 7
call fcn.00403f90
lea ecx, [esp + 0x90]
call fcn.0042d2a0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x13c], 9
mov byte [esp + 0xb4], 0
call fcn.00403f90
lea ecx, [esp + 0xd4]
mov byte [esp + 0x13c], 0xa
call fcn.00403f90
lea ecx, [esp + 0xe0]
mov byte [esp + 0x13c], 0xb
call fcn.00403f90
lea ecx, [esp + 0x70]
mov byte [esp + 0x13c], 0xc
call fcn.004dc020
mov ecx, dword [esp + 0x30]
mov dl, bl
inc dl
mov eax, 0x2aaaaaab
mov byte [esp + 0x70], dl
mov edx, dword [esp + 0x2c]
sub ecx, edx
xor esi, esi
imul ecx
sar edx, 1
mov eax, edx
mov byte [esp + 0x13c], 0xd
shr eax, 0x1f
add edx, eax
je 0x4ae999
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edi
push edx
call fcn.004ae220
add esp, 0xc
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov byte [esp + 0x13c], 0xe
ja 0x4aea8a
sub esp, 0xc
lea edx, [esp + 0x24]
mov dword [esp + 0x50], esp
mov ecx, esp
push edx
call fcn.00420b60
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x14c], 0x15
call fcn.00482bd0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
call fcn.00435600
lea eax, [esp + 0x88]
mov ecx, ebp
push eax
mov byte [esp + 0x158], 0xe
call fcn.004aa260
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0xd
call fcn.00402ab0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
inc esi
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jb 0x4ae8ec
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
cmp edx, eax
je 0x4ae9b8
lea eax, [esp + 0x70]
lea ecx, [ebp + 0x40]
push eax
call fcn.00490980
lea ecx, [esp + 0xe0]
mov byte [esp + 0x13c], 0x1a
call fcn.004207d0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x13c], 0x19
call fcn.004207d0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x13c], 0x18
call fcn.004207d0
lea ecx, [esp + 0x90]
mov byte [esp + 0x13c], 0x17
call fcn.00432740
lea ecx, [esp + 0x84]
mov byte [esp + 0x13c], 0x16
call fcn.004207d0
lea ecx, [esp + 0x78]
mov byte [esp + 0x13c], 2
call fcn.00402ab0
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jb 0x4ae83c
mov byte [esp + 0x13], 1
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, edi
mov dword [esp + 0x13c], 0x1b
je 0x4aea66
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, edi
jne 0x4aea56
lea ecx, [esp + 0x2c]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00479500
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x144]
jmp 0x4aebed
mov edx, dword [ebp]
push str.CServerQuery::Query_GS2:_Invalid_player_data
mov ecx, ebp
call dword [edx + 0x1c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0xd
call fcn.00402ab0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x13c], 0x13
call fcn.004207d0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x13c], 0x12
call fcn.004207d0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x13c], 0x11
call fcn.004207d0
lea ecx, [esp + 0x90]
mov byte [esp + 0x13c], 0x10
call fcn.00432740
lea ecx, [esp + 0x84]
mov byte [esp + 0x13c], 0xf
call fcn.004207d0
lea ecx, [esp + 0x78]
mov byte [esp + 0x13c], 2
call fcn.004207d0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, edi
mov dword [esp + 0x13c], 0x14
je 0x4aeb8b
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, edi
jne 0x4aeb34
jmp 0x4aeb8b
mov eax, dword [ebp]
push str.CServerQuery::Query_GS2:_Invalid_player_field
mov ecx, ebp
call dword [eax + 0x1c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 2
call fcn.00402ab0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, edi
mov dword [esp + 0x13c], 4
je 0x4aeb8b
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, edi
jne 0x4aeb7b
lea ecx, [esp + 0x2c]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00479500
xor al, al
jmp 0x4af1a5
mov edx, dword [ebp]
push str.CServerQuery::Query_GS2:_Invalid_player_field__2_
mov ecx, ebp
call dword [edx + 0x1c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 2
call fcn.00402ab0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, edi
mov dword [esp + 0x13c], 5
je 0x4aeb8b
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, edi
jne 0x4aebdb
jmp 0x4aeb8b
mov edx, dword [esp + 0x148]
lea ecx, [eax + 2]
cmp ecx, edx
jae 0x4af140
mov cl, byte [eax + ebx + 2]
test cl, cl
je 0x4af140
mov cl, byte [eax + ebx]
inc eax
mov dword [esp + 0x14], eax
movzx dx, byte [eax + ebx]
inc eax
mov word [esp + 0x24], dx
test cl, cl
mov dword [esp + 0x14], eax
je 0x4aec3a
mov eax, dword [ebp]
push str.CServerQuery::Query_GS2:_TeamUnknown_not_null
mov ecx, ebp
call dword [eax + 0x1c]
xor al, al
jmp 0x4af1a5
lea ecx, [esp + 0x2b]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00482bc0
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push ebx
push eax
mov dword [esp + 0x148], 0x1c
call fcn.004ae220
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
mov byte [esp + 0x13c], 0x1d
je 0x4aed68
mov edx, dword [esp + 0x148]
mov eax, dword [esp + 0x14]
cmp eax, edx
ja 0x4af0ab
lea eax, [esp + 0x60]
push 2
push eax
lea ecx, [esp + 0x20]
call fcn.004ae140
mov edx, eax
mov edi, 0x6a26d0
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [edx]
mov edx, dword [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, esi
cmp edx, ecx
jne 0x4aeccf
mov edi, 0x6a26d0
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4aeccf
mov eax, 1
jmp 0x4aecd1
xor eax, eax
test al, al
lea ecx, [esp + 0x60]
sete byte [esp + 0x12]
call fcn.00402ab0
mov al, byte [esp + 0x12]
test al, al
jne 0x4af0f2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub ecx, edx
lea edx, [esp + 0x4c]
sub ecx, 2
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00482090
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x140], 0x20
call fcn.004bf3f0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x13c], 0x1d
call fcn.00402ab0
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0x1c
call fcn.00402ab0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ebx
push ecx
call fcn.004ae220
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp edx, eax
mov byte [esp + 0x13c], 0x1d
jne 0x4aec7e
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0x1c
call fcn.00402ab0
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
and ebx, 0xffff
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], ebx
jbe 0x4aefe5
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, esi
mov dword [esp + 0x24], 0
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x4aefd4
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x144]
add ecx, esi
lea edx, [esp + 0x14]
mov dword [esp + 0x58], ecx
push edx
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.004ae220
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x148]
cmp edx, eax
mov byte [esp + 0x13c], 0x21
ja 0x4af04b
mov edi, str.team
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x58]
not ecx
mov ebx, dword [eax]
mov edx, dword [eax + 4]
dec ecx
sub edx, ebx
cmp edx, ecx
jne 0x4aee31
mov edi, str.team
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4aee59
mov edi, str.teamname
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jne 0x4aeef4
mov edi, str.teamname
mov esi, ebx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4aeef4
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x44]
mov edx, dword [ebp + 0x40]
xor edi, edi
lea ebx, [eax + 1]
sub ecx, edx
mov eax, 0x5397829d
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
test edx, edx
jle 0x4aeef4
xor esi, esi
mov eax, dword [ebp + 0x40]
mov edx, dword [esi + eax + 0x68]
mov ecx, dword [esi + eax + 0x64]
sub edx, ecx
je 0x4aeed0
lea ecx, [esi + eax + 0x64]
call fcn.004fde40
test al, al
je 0x4aeed0
mov eax, dword [ebp + 0x40]
lea ecx, [esi + eax + 0x64]
call fcn.004fde70
cmp eax, ebx
jne 0x4aeed0
mov eax, dword [ebp + 0x40]
lea ecx, [esi + eax + 0x64]
lea eax, [esp + 0x4c]
cmp eax, ecx
je 0x4aeed0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x12]
push edx
mov edx, dword [esp + 0x50]
push eax
push edx
call fcn.0041cfd0
mov ecx, dword [ebp + 0x44]
mov edx, dword [ebp + 0x40]
sub ecx, edx
mov eax, 0x5397829d
imul ecx
sar edx, 6
mov eax, edx
inc edi
shr eax, 0x1f
add edx, eax
add esi, 0xc4
cmp edi, edx
jl 0x4aee81
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
sub esp, 8
sub eax, edx
mov ecx, esp
mov dword [esp + 0x74], esp
mov dword [ecx], edx
mov dword [ecx + 4], eax
lea ecx, [esp + 0x68]
call fcn.00403f90
mov esi, eax
mov edx, dword [esp + 0x50]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x7c], esp
inc edx
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov byte [esp + 0x154], 0x23
call fcn.00404600
push eax
push str._s_t_u
push esi
call fcn.004fda00
add esp, 0x10
mov ecx, eax
call fcn.00401a00
lea ecx, [ebp + 0x34]
call fcn.00443640
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
sub eax, ecx
mov byte [esp + 0x13c], 0x24
push eax
push ecx
lea ecx, [esp + 0x70]
call fcn.00402b70
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
sub eax, ecx
mov byte [esp + 0x13c], 0x25
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00402b70
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x3c]
add esi, 0xc
mov ecx, edi
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x38]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x13c], 0x1c
sar edx, 1
mov eax, edx
inc ebx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x24], ebx
cmp ebx, edx
jb 0x4aedc7
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
inc eax
cmp eax, ebx
mov dword [esp + 0x48], eax
jb 0x4aed9d
mov byte [esp + 0x12], 1
cmp esi, edi
mov dword [esp + 0x13c], 0x26
je 0x4af00b
mov ecx, esi
call fcn.00402340
add esi, 0xc
cmp esi, edi
jne 0x4aeff9
mov esi, dword [esp + 0x38]
test esi, esi
mov dword [esp + 0x13c], 0x27
je 0x4af03b
mov ecx, dword [esp + 0x40]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
lea ecx, [esp + 0x40]
shr eax, 0x1f
add edx, eax
push edx
push esi
call fcn.00491b20
mov dword [esp + 0x13c], 0xffffffff
jmp 0x4af140
mov edx, dword [ebp]
push str.CServerQuery::Query_GS2:_Invalid_team_data
mov ecx, ebp
call dword [edx + 0x1c]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x13c], 0x1c
call fcn.00402ab0
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp esi, edi
mov dword [esp + 0x13c], 0x22
je 0x4af090
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, edi
jne 0x4af080
lea ecx, [esp + 0x38]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00479500
xor al, al
jmp 0x4af1a5
mov edx, dword [ebp]
push str.CServerQuery::Query_GS2:_Invalid_team_field
mov ecx, ebp
call dword [edx + 0x1c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0x1c
call fcn.00402ab0
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp esi, edi
mov dword [esp + 0x13c], 0x1e
je 0x4af090
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, edi
jne 0x4af0e0
jmp 0x4af090
mov eax, dword [ebp]
push str.CServerQuery::Query_GS2:_Invalid_team_field__2_
mov ecx, ebp
call dword [eax + 0x1c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0x1c
call fcn.00402ab0
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp esi, edi
mov dword [esp + 0x13c], 0x1f
je 0x4af090
push 0
mov ecx, esi
call fcn.00483b50
add esi, 0xc
cmp esi, edi
jne 0x4af12b
jmp 0x4af090
mov dword [ebp + 0xf4], 1
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov al, byte [esp + 0x13]
sar edx, 2
mov ecx, edx
and eax, 1
shr ecx, 0x1f
add edx, ecx
mov cl, byte [esp + 0x12]
shl eax, 1
and ecx, 1
or eax, ecx
xor ecx, ecx
shl eax, 1
test edx, edx
mov edx, dword [ebp + 0xf0]
setne cl
and ecx, 1
and edx, 0xfffffff1
or eax, ecx
shl eax, 1
or eax, edx
test al, 2
mov dword [ebp + 0xf0], eax
je 0x4af1a3
push 0x24
mov ecx, ebp
call fcn.004aa9a0
mov al, 1
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret 8