Function at 0x100aa290
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010f798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ecx
xor esi, esi
mov dword [0x51c714], 0
push edi
xor edi, edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edi
nop word [eax + eax]
mov dword [ebp - 0x20], 0
nop word [eax + eax]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call dword [0x101213c4]
mov ebx, eax
test ebx, ebx
je 0x100aa3fe
cmp byte [ebx + 0x67], 1
jne 0x100aa3ee
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
cmp eax, esi
jae 0x100aa38c
cmp ecx, eax
ja 0x100aa38c
mov ebx, eax
sub ebx, ecx
sar ebx, 2
cmp esi, edi
jne 0x100aa381
mov eax, edi
sub eax, esi
sar eax, 2
cmp eax, 1
jae 0x100aa381
sub esi, ecx
mov eax, 0x3fffffff
sar esi, 2
sub eax, esi
cmp eax, 1
jb 0x100aa47a
sub edi, ecx
inc esi
sar edi, 2
mov ecx, 0x3fffffff
mov eax, edi
xor edx, edx
shr eax, 1
sub ecx, eax
add eax, edi
cmp ecx, edi
lea ecx, [ebp - 0x3c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.10016850
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], edi
test esi, esi
je 0x100aa3e8
mov eax, dword [ecx + ebx*4]
mov dword [esi], eax
jmp 0x100aa3e8
cmp esi, edi
jne 0x100aa3e2
mov eax, edi
sub eax, esi
sar eax, 2
cmp eax, 1
jae 0x100aa3e2
sub esi, ecx
mov eax, 0x3fffffff
sar esi, 2
sub eax, esi
cmp eax, 1
jb 0x100aa47a
sub edi, ecx
inc esi
sar edi, 2
mov ecx, 0x3fffffff
mov eax, edi
xor edx, edx
shr eax, 1
sub ecx, eax
add eax, edi
cmp ecx, edi
lea ecx, [ebp - 0x3c]
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.10016850
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x28], edi
test esi, esi
je 0x100aa3e8
mov dword [esi], ebx
add esi, 4
mov dword [ebp - 0x38], esi
call dword [0x101213b8]
mov ebx, eax
test ebx, ebx
jne 0x100aa306
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, 0x9c40
jl 0x100aa2f0
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 3
jl 0x100aa2e0
sub esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
sar esi, 2
xor edi, edi
mov dword [ebp - 0x50], esi
mov eax, dword [0x5186c4]
mov ecx, dword [ecx]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x58], eax
mov eax, dword [0x519574]
mov dword [ebp - 0x5c], eax
mov eax, dword [0x10154928]
mov dword [ebp - 0x48], eax
mov eax, dword [0x101552e8]
mov dword [ebp - 0x4c], eax
mov eax, 4
mov dword [ebp - 0x1c], ecx
nop
push 0
sub eax, edi
push eax
lea eax, [ebp - 0x58]
add eax, edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100aa484
add edi, eax
jmp 0x100aa494
push str.vector_T__too_long
call fcn.100e89e5
call esi
cmp eax, 0x2733
je 0x100aa494
cmp eax, 0x2747
jne 0x100aa4a1
mov ecx, dword [ebp - 0x1c]
mov eax, 4
cmp edi, 4
jl 0x100aa460
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
nop dword [eax + eax]
push 0
mov eax, 4
sub eax, ebx
push eax
lea eax, [ebp - 0x5c]
add eax, ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100aa4cf
add ebx, eax
jmp 0x100aa4df
call esi
cmp eax, 0x2733
je 0x100aa4df
cmp eax, 0x2747
jne 0x100aa4e7
mov ecx, dword [ebp - 0x1c]
cmp ebx, 4
jl 0x100aa4b0
mov eax, dword [ebp - 0x10]
xor edi, edi
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
push 0
mov eax, 4
sub eax, edi
push eax
lea eax, [ebp - 0x48]
add eax, edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100aa510
add edi, eax
jmp 0x100aa520
call esi
cmp eax, 0x2733
je 0x100aa520
cmp eax, 0x2747
jne 0x100aa528
mov ecx, dword [ebp - 0x1c]
cmp edi, 4
jl 0x100aa4f1
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
push 0
mov eax, 4
sub eax, ebx
push eax
lea eax, [ebp - 0x4c]
add eax, ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100aa551
add ebx, eax
jmp 0x100aa561
call esi
cmp eax, 0x2733
je 0x100aa561
cmp eax, 0x2747
jne 0x100aa569
mov ecx, dword [ebp - 0x1c]
cmp ebx, 4
jl 0x100aa532
mov eax, dword [ebp - 0x10]
xor edi, edi
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
push 0
mov eax, 4
sub eax, edi
push eax
lea eax, [ebp - 0x50]
add eax, edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100aa595
add edi, eax
jmp 0x100aa5a5
call esi
cmp eax, 0x2733
je 0x100aa5a5
cmp eax, 0x2747
jne 0x100aa5ad
mov ecx, dword [ebp - 0x1c]
cmp edi, 4
jl 0x100aa576
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov esi, 0x10
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100ea148
mov edx, dword [0x10154924]
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [edx]
cmp ecx, edx
je 0x100aa5ff
mov edx, eax
nop word [eax + eax]
mov eax, dword [ecx + 8]
lea edx, [edx + 0x10]
mov dword [edx - 0x10], eax
mov eax, dword [ecx + 0xc]
mov dword [edx - 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edx - 8], eax
mov ecx, dword [ecx]
cmp ecx, dword [0x10154924]
jne 0x100aa5e0
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100ea148
mov ecx, dword [0x101552e4]
add esp, 4
mov dword [ebp - 0x24], eax
mov esi, dword [ecx]
cmp esi, ecx
je 0x100aa65d
mov ebx, eax
mov eax, dword [esi + 8]
mov dword [ebx], eax
mov eax, dword [esi + 0xc]
movzx eax, byte [eax + 4]
and eax, 1
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [ebx + 8], eax
lea ebx, [ebx + 0x10]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 4]
mov dword [ebx - 4], eax
mov esi, dword [esi]
cmp esi, dword [0x101552e4]
jne 0x100aa627
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp - 0x10]
mov edx, dword [0x5186c0]
shl eax, 2
push eax
mov ecx, dword [esi]
call fcn.100aa190
mov eax, dword [ebp - 0x5c]
mov edx, dword [0x51956c]
mov ecx, dword [esi]
shl eax, 2
push eax
call fcn.100aa190
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [esi]
shl eax, 4
push eax
call fcn.100aa190
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x24]
mov ecx, dword [esi]
shl eax, 4
push eax
call fcn.100aa190
cmp dword [ebp - 0x50], 0
mov dword [ebp - 0x18], 0
jle 0x100aa7a5
mov eax, ebx
mov dword [ebp - 0x20], ebx
mov edi, dword [esi]
xor esi, esi
mov ebx, dword [eax]
add ebx, 0x64
nop dword [eax]
push 0
mov eax, 4
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100aa6ed
add esi, eax
jmp 0x100aa701
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x100aa701
cmp eax, 0x2747
jne 0x100aa706
cmp esi, 4
jl 0x100aa6d0
mov eax, dword [ebp - 0x10]
xor esi, esi
mov ebx, dword [ebp - 0x20]
mov edi, dword [eax]
push 0
mov eax, 4
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100aa72d
add esi, eax
jmp 0x100aa741
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x100aa741
cmp eax, 0x2747
jne 0x100aa746
cmp esi, 4
jl 0x100aa710
mov eax, dword [ebp - 0x10]
xor esi, esi
mov ebx, dword [ebx]
mov edi, dword [eax]
nop
push 0
mov eax, 4
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100aa76d
add esi, eax
jmp 0x100aa781
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x100aa781
cmp eax, 0x2747
jne 0x100aa786
cmp esi, 4
jl 0x100aa750
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
inc ecx
mov esi, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
cmp ecx, dword [ebp - 0x50]
jl 0x100aa6c0
mov ebx, dword [ebp - 0x3c]
mov edi, dword [esi]
xor esi, esi
nop dword [eax]
push 0
mov eax, 1
sub eax, esi
push eax
lea eax, [ebp - 0x2d]
add eax, esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100aa7cf
add esi, eax
jmp 0x100aa7e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x100aa7e3
cmp eax, 0x2747
jne 0x100aa7e8
cmp esi, 1
jl 0x100aa7b0
mov al, byte [ebp - 0x2d]
mov edi, dword [ebp - 0x28]
cmp al, 0xfe
je 0x100aacab
movzx eax, al
cmp eax, 0xc
ja case.0x100aa802.5
jmp dword [eax*4 + 0x100aad1c]
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push 4
mov ecx, dword [esi]
call fcn.100aa210
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
push 4
call fcn.100aa210
mov ecx, dword [ebp - 0x14]
mov eax, 0x5186c0
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
jmp 0x100aac96
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push 4
mov ecx, dword [esi]
call fcn.100aa210
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
push 4
call fcn.100aa210
mov ecx, dword [ebp - 0x14]
mov eax, 0x51956c
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
jmp 0x100aac96
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push 4
mov ecx, dword [esi]
call fcn.100aa210
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi]
push 0x84
mov edx, dword [ebx + edx*4]
call fcn.100aa190
jmp 0x100aac96
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push 4
mov ecx, dword [esi]
call fcn.100aa210
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi]
push 0x84
mov edx, dword [ebx + edx*4]
call fcn.100aa210
jmp 0x100aac96
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push 4
mov ecx, dword [esi]
call fcn.100aa210
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
push 4
call fcn.100aa210
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
add ecx, ecx
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*8 + 8], eax
jmp 0x100aac96
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push 4
mov ecx, dword [eax]
call fcn.100aa210
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov esi, dword [ebp - 0x24]
add eax, eax
mov edx, 4
mov eax, dword [esi + eax*8 + 8]
add eax, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100ea148
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x20], eax
add ecx, ecx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [esi + ecx*8]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x40], ecx
call fcn.100d6150
mov eax, dword [ebp - 0x78]
mov esi, dword [0x101552e4]
cmp eax, esi
jne 0x100aa9a9
mov esi, dword [esi]
lea eax, [ebp - 0x40]
push ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push dword [esi + 4]
push esi
call fcn.1008d040
mov edx, dword [0x101552e8]
mov ecx, 0xffffffe
sub ecx, edx
mov dword [ebp - 0x1c], eax
cmp ecx, 1
jb 0x100aaca1
mov ecx, dword [ebp - 0x1c]
inc edx
mov dword [0x101552e8], edx
mov dword [esi + 4], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov ecx, 0x101552e0
mov eax, dword [0x101552e4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1008cd60
mov eax, dword [ebp - 0x88]
jmp 0x100aa9b6
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0
mov ecx, dword [eax + 0xc]
push 0
push dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [ebp - 0x14]
xor esi, esi
mov ecx, dword [ebp - 0x24]
add eax, eax
mov ecx, dword [ecx + eax*8 + 8]
test ecx, ecx
jle 0x100aa9ea
mov eax, dword [ebp - 0x20]
add eax, 4
nop dword [eax + eax]
add esi, dword [eax]
lea eax, [eax + 8]
sub ecx, 1
jne 0x100aa9e0
push esi
call fcn.100ea148
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x1c], eax
add ecx, ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + ecx*8]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x40], ecx
push eax
call fcn.100d6150
mov eax, dword [ebp - 0x7c]
mov ecx, dword [0x101552e4]
cmp eax, ecx
jne 0x100aaa8b
push ecx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ecx]
lea ecx, [ebp - 0x44]
push ecx
push ecx
mov dword [ebp - 0x54], eax
push dword [eax + 4]
push eax
call fcn.1008d040
mov edx, dword [0x101552e8]
mov ecx, 0xffffffe
sub ecx, edx
mov dword [ebp - 0x44], eax
cmp ecx, 1
jb 0x100aaca1
mov ecx, dword [ebp - 0x54]
inc edx
mov dword [0x101552e8], edx
mov dword [ecx + 4], eax
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
mov ecx, 0x101552e0
mov eax, dword [0x101552e4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.1008cd60
mov eax, dword [ebp - 0x90]
jmp 0x100aaa98
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], 0
mov ecx, dword [eax + 0xc]
push dword [ebp - 0x1c]
push 0
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
add eax, eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ecx + eax*8 + 8]
shl eax, 3
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call fcn.100aa190
mov eax, dword [ebp - 0x10]
push esi
mov esi, dword [ebp - 0x1c]
mov edx, esi
mov ecx, dword [eax]
call fcn.100aa190
push esi
call fcn.100e9b8b
push dword [ebp - 0x20]
call fcn.100e9b8b
add esp, 8
jmp case.0x100aa802.5
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push 4
mov ecx, dword [esi]
call fcn.100aa210
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
push 4
call fcn.100aa210
push dword [ebp - 0x18]
call fcn.100ea148
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x10]
mov edx, esi
push dword [ebp - 0x18]
mov ecx, dword [eax]
call fcn.100aa210
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
add ecx, ecx
push esi
mov ecx, dword [eax + ecx*8]
call fcn.100d54b0
push esi
call fcn.100e9b8b
add esp, 4
jmp case.0x100aa802.5
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push 4
mov ecx, dword [esi]
call fcn.100aa210
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x44]
call dword [0x101211f4]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100aab78
mov eax, dword [eax + 0x24]
jmp 0x100aab7a
xor eax, eax
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
push 4
mov dword [ebp - 0x18], eax
call fcn.100aa190
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100aac96
push eax
lea ecx, [ebp - 0x74]
call fcn.100ab920
mov eax, dword [ebp - 0x18]
xor esi, esi
test eax, eax
jle 0x100aabcc
mov edi, dword [ebp - 0x74]
nop dword [eax]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x80]
push eax
mov edx, esi
call fcn.10017850
mov eax, dword [ebp - 0x80]
mov dword [edi + esi*4], eax
inc esi
mov eax, dword [ebp - 0x18]
cmp esi, eax
jl 0x100aabb0
mov esi, dword [ebp - 0x74]
mov edx, esi
shl eax, 2
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call fcn.100aa190
test esi, esi
je case.0x100aa802.5
mov edx, dword [ebp - 0x6c]
mov ecx, esi
sub edx, esi
push 4
sar edx, 2
call fcn.1000d8e0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
jmp case.0x100aa802.5
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push 4
mov ecx, dword [esi]
call fcn.100aa210
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
push 4
call fcn.100aa210
push dword [ebp - 0x18]
lea ecx, [ebp - 0x68]
call fcn.100ab920
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x68]
mov ecx, dword [esi]
shl eax, 2
push eax
call fcn.100aa210
xor esi, esi
cmp dword [ebp - 0x18], esi
jle 0x100aac66
mov edi, dword [ebp - 0x68]
push dword [edi + esi*4]
mov ecx, dword [ebp - 0x14]
mov edx, esi
call fcn.10017870
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x100aac53
mov eax, dword [ebp - 0x68]
test eax, eax
je case.0x100aa802.5
mov edx, dword [ebp - 0x60]
mov ecx, eax
sub edx, eax
push 4
sar edx, 2
call fcn.1000d8e0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov esi, dword [ebp - 0x10]
call dword [0x10120fc8]
jmp 0x100aa7a5
push str.list_T__too_long
call fcn.100e89e5
mov ecx, dword [0x10154924]
mov eax, dword [ecx]
cmp eax, ecx
je 0x100aacd2
mov edx, dword [ebp - 0x2c]
add edx, 8
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [eax]
cmp eax, dword [0x10154924]
jne 0x100aacc0
push dword [ebp - 0x2c]
call fcn.100e9b8b
push dword [ebp - 0x24]
call fcn.100e9b8b
add esp, 8
call dword [0x10121004]
mov dword [0x51c714], 1
test ebx, ebx
je 0x100aad09
sub edi, ebx
mov ecx, ebx
sar edi, 2
push 4
mov edx, edi
call fcn.1000d8e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret