Function at 0x5af780
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x733a5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e4
mov eax, dword [0x7a1264]
push ebx
mov ebx, ecx
push esi
test eax, eax
mov eax, dword [0x7a1250]
push edi
mov dword [ebp - 0x14], ebx
je 0x5af7b9
mov eax, dword [0x7a1254]
cmp eax, 2
je 0x5b078f
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x5b078f
mov eax, dword [0x83c484]
push eax
call fcn.005317a0
mov esi, dword [ebp + 8]
add esp, 4
test esi, esi
mov byte [ebp - 0xd], al
je 0x5b078f
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5b078f
mov eax, dword [0x7a1264]
test eax, eax
mov eax, dword [0x7a1254]
je 0x5af810
mov eax, dword [0x7a1250]
cmp eax, 3
jne 0x5b078f
mov eax, dword [0x7dae30]
test eax, eax
jne 0x5b078f
mov eax, dword [esi + 0x1c]
cmp eax, 0x2d
jl 0x5af835
cmp eax, 0xfa0
jl 0x5af84e
push eax
mov ecx, 0x83a9e0
call fcn.006f5b20
test eax, eax
jne 0x5af84e
cmp dword [esi + 0x20], 4
jne 0x5afd1e
mov eax, dword [esi + 0x18]
mov ecx, dword [ebx + 0xb4]
push eax
call fcn.00529760
mov edi, eax
test edi, edi
je 0x5afd1e
mov eax, dword [edi + 0x214]
mov ecx, 0x83a9e0
push eax
call fcn.006f8a80
test eax, eax
je 0x5afa0f
mov eax, dword [0x7dadcc]
test eax, eax
je 0x5af895
push 0x12
mov ecx, 0x7dabc0
call fcn.00509b10
mov ecx, dword [ebx + 0x1f8]
mov eax, dword [ebx + 0x1f8]
mov esi, dword [ebx + 0x1f4]
lea edi, [ebx + 0x1f0]
cmp eax, ecx
je 0x5af8bf
mov edx, dword [eax]
add eax, 4
mov dword [esi], edx
add esi, 4
cmp eax, ecx
jne 0x5af8b1
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push esi
call fcn.004289a0
push 0x12
mov ecx, 0x7dabc0
mov dword [edi + 8], esi
call fcn.0050cbe0
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x25
mov edx, dword [ecx + 0x18]
push eax
mov dword [ebx + 0x330], edx
mov ecx, dword [edi + 8]
push 1
push ecx
mov ecx, edi
call fcn.004087e0
push 0x458
call fcn.00581bb0
lea edx, [ebp - 0x1f0]
push eax
push edx
call fcn.00711e28
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x1f0]
push 0
push 0
push 0
push ecx
push 0x1f
push 0
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [edi + 8]
lea edx, [ebp + 0xc]
push edx
push 1
push eax
mov ecx, edi
mov dword [ebp + 0xc], 0x26
call fcn.004087e0
push 0x459
call fcn.00581bb0
lea ecx, [ebp - 0x1f0]
push eax
push ecx
call fcn.00711e28
mov edx, dword [esi]
add esp, 0xc
lea eax, [ebp - 0x1f0]
mov ecx, esi
push 0
push 0
push 0
push eax
push 0x1f
push 0
call dword [edx + 0x90]
mov edx, dword [edi + 8]
lea ecx, [ebp + 0xc]
push ecx
push 1
push edx
mov ecx, edi
mov dword [ebp + 0xc], 0x27
call fcn.004087e0
push 0x45a
call fcn.00581bb0
push eax
lea eax, [ebp - 0x1f0]
push eax
call fcn.00711e28
mov edx, dword [esi]
add esp, 0xc
push 0
push 0
push 0
lea eax, [ebp - 0x1f0]
push eax
push 0x1f
push 0
mov ecx, esi
call dword [edx + 0x90]
mov edx, dword [esi]
push 0
push 0
push 0
push 0
push 0x1e
push 0
mov ecx, esi
call dword [edx + 0x90]
mov ecx, dword [0x7a1240]
mov edx, dword [0x7a123c]
mov eax, dword [esi]
inc ecx
inc edx
push ecx
push edx
mov ecx, esi
call dword [eax + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x18]
mov ecx, 0x83a9e0
push eax
call fcn.006f8ab0
test eax, eax
je 0x5afb1f
mov eax, dword [0x7dadcc]
test eax, eax
je 0x5afa3a
push 0x12
mov ecx, 0x7dabc0
call fcn.00509b10
mov ecx, dword [ebx + 0x1f8]
mov eax, dword [ebx + 0x1f8]
mov esi, dword [ebx + 0x1f4]
lea edi, [ebx + 0x1f0]
cmp eax, ecx
je 0x5afa64
mov edx, dword [eax]
add eax, 4
mov dword [esi], edx
add esi, 4
cmp eax, ecx
jne 0x5afa56
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push esi
call fcn.004289a0
push 0x12
mov ecx, 0x7dabc0
mov dword [edi + 8], esi
call fcn.0050cbe0
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x28
mov edx, dword [ecx + 0x18]
push eax
mov dword [ebx + 0x330], edx
mov ecx, dword [edi + 8]
push 1
push ecx
mov ecx, edi
call fcn.004087e0
push 0x458
call fcn.00581bb0
lea edx, [ebp - 0x1f0]
push eax
push edx
call fcn.00711e28
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x1f0]
push 0
push 0
push 0
push ecx
push 0x1f
push 0
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [edi + 8]
lea edx, [ebp + 0xc]
push edx
push 1
push eax
mov ecx, edi
mov dword [ebp + 0xc], 0x29
call fcn.004087e0
push 0x45a
call fcn.00581bb0
lea ecx, [ebp - 0x1f0]
push eax
push ecx
call fcn.00711e28
mov edx, dword [esi]
add esp, 0xc
lea eax, [ebp - 0x1f0]
push 0
push 0
push 0
jmp 0x5af9c2
mov eax, dword [esi + 0x18]
mov ecx, dword [0x83bf78]
cmp eax, ecx
jne 0x5afd1e
cmp dword [edi + 0x258], 0x64
jne 0x5afd1e
mov eax, dword [0x7dadcc]
test eax, eax
je 0x5afb52
push 0x12
mov ecx, 0x7dabc0
call fcn.00509b10
mov ecx, dword [ebx + 0x1f8]
mov eax, dword [ebx + 0x1f8]
mov esi, dword [ebx + 0x1f4]
lea edi, [ebx + 0x1f0]
cmp eax, ecx
je 0x5afb7c
mov edx, dword [eax]
add eax, 4
mov dword [esi], edx
add esi, 4
cmp eax, ecx
jne 0x5afb6e
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push esi
call fcn.004289a0
push 0x12
mov ecx, 0x7dabc0
mov dword [edi + 8], esi
call fcn.0050cbe0
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x21
mov edx, dword [ecx + 0x18]
push eax
mov dword [ebx + 0x330], edx
mov ecx, dword [edi + 8]
push 1
push ecx
mov ecx, edi
call fcn.004087e0
push 0x254
call fcn.00581bb0
lea edx, [ebp - 0x1f0]
push eax
push edx
call fcn.00711e28
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x1f0]
push 0
push 0
push 0
push ecx
push 0x1f
push 0
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [edi + 8]
lea edx, [ebp + 0xc]
push edx
push 1
push eax
mov ecx, edi
mov dword [ebp + 0xc], 0x1d
call fcn.004087e0
push 0x250
call fcn.00581bb0
lea ecx, [ebp - 0x1f0]
push eax
push ecx
call fcn.00711e28
mov edx, dword [esi]
add esp, 0xc
lea eax, [ebp - 0x1f0]
mov ecx, esi
push 0
push 0
push 0
push eax
push 0x1f
push 0
call dword [edx + 0x90]
mov edx, dword [edi + 8]
lea ecx, [ebp + 0xc]
push ecx
push 1
push edx
mov ecx, edi
mov dword [ebp + 0xc], 0x1e
call fcn.004087e0
push 0x251
call fcn.00581bb0
push eax
lea eax, [ebp - 0x1f0]
push eax
call fcn.00711e28
mov edx, dword [esi]
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x1f0]
push 0
push eax
push 0x1f
push 0
mov ecx, esi
call dword [edx + 0x90]
mov edx, dword [edi + 8]
lea ecx, [ebp + 0xc]
push ecx
push 1
push edx
mov ecx, edi
mov dword [ebp + 0xc], 0x20
call fcn.004087e0
push 0x253
call fcn.00581bb0
push eax
lea eax, [ebp - 0x1f0]
push eax
call fcn.00711e28
mov edx, dword [esi]
add esp, 0xc
lea eax, [ebp - 0x1f0]
mov ecx, esi
push 0
push 0
push 0
push eax
push 0x1f
push 0
call dword [edx + 0x90]
mov edx, dword [edi + 8]
lea ecx, [ebp + 0xc]
push ecx
push 1
push edx
mov ecx, edi
mov dword [ebp + 0xc], 0x1f
call fcn.004087e0
push 0x252
call fcn.00581bb0
push eax
lea eax, [ebp - 0x1f0]
push eax
call fcn.00711e28
mov edx, dword [esi]
add esp, 0xc
lea eax, [ebp - 0x1f0]
push 0
push 0
push 0
jmp 0x5af9c2
mov eax, dword [esi + 0x18]
mov ecx, dword [0x83c484]
cmp eax, ecx
je 0x5b078f
mov eax, dword [esi + 0x1c]
mov ecx, 0x83a9e0
push eax
call fcn.006dd1e0
test eax, eax
jne 0x5afd4c
mov al, byte [ebp - 0xd]
test al, al
je 0x5b078f
mov eax, dword [esi + 0x18]
mov edi, dword [ebx + 0x158]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x18]
push eax
push ecx
lea ecx, [ebx + 0x154]
call fcn.005b8a80
cmp dword [eax], edi
jne 0x5afd7a
mov al, byte [ebp - 0xd]
test al, al
je 0x5b078f
mov esi, dword [esi + 0x18]
lea edx, [ebp - 0xb8]
push esi
push edx
mov ecx, ebx
call fcn.005aac20
mov eax, dword [eax + 8]
test eax, eax
jne 0x5afd9e
mov al, byte [ebp - 0xd]
mov byte [ebp + 0xf], 1
test al, al
je 0x5afda2
mov byte [ebp + 0xf], 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.00420200
mov al, byte [ebp + 0xf]
test al, al
jne 0x5b078f
mov eax, dword [0x7a123c]
mov ecx, dword [ebx + 0xcc]
cmp ecx, eax
jne 0x5b078f
mov eax, dword [0x7a1240]
mov ecx, dword [ebx + 0xd0]
cmp ecx, eax
jne 0x5b078f
mov eax, dword [0x7dadcc]
test eax, eax
je 0x5afdf5
push 0x12
mov ecx, 0x7dabc0
call fcn.00509b10
mov ecx, dword [ebx + 0x1f8]
mov edx, dword [ebx + 0x1f8]
mov eax, dword [ebx + 0x1f4]
lea esi, [ebx + 0x1f0]
cmp ecx, edx
je 0x5afe1f
mov edi, dword [ecx]
add ecx, 4
mov dword [eax], edi
add eax, 4
cmp ecx, edx
jne 0x5afe11
mov ecx, dword [esi + 8]
push 0x12
mov dword [ebp + 0xc], ecx
mov ecx, 0x7dabc0
mov dword [esi + 8], eax
call fcn.0050cbe0
mov ecx, dword [ebp + 8]
mov edi, eax
lea edx, [ebp - 0x28]
mov eax, dword [ecx + 0x18]
mov dword [ebx + 0x330], eax
mov eax, dword [ecx + 0x18]
push eax
push edx
mov ecx, ebx
call fcn.005aac20
mov al, byte [ebp - 0xd]
mov dword [ebp - 4], 0
test al, al
je 0x5afebc
mov eax, dword [esi + 8]
lea ecx, [ebp + 0xc]
push ecx
push 1
push eax
mov ecx, esi
mov dword [ebp + 0xc], 0x1c
call fcn.004087e0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5afe83
mov eax, 0x73a7f4
push eax
push 0x1ca
call fcn.00581bb0
add esp, 4
lea edx, [ebp - 0xa8]
push eax
push edx
call fcn.00711e28
mov eax, dword [edi]
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 0
push 0
push 0
push ecx
push 0x1f
push 0
mov ecx, edi
call dword [eax + 0x90]
mov ecx, 0x814260
call fcn.00533580
mov eax, dword [eax + 0xb4]
mov eax, dword [eax + 0x3c]
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 0x284]
push eax
call fcn.006ddd50
add esp, 4
test al, al
jne 0x5aff58
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x284]
push eax
call fcn.006ddd20
add esp, 4
test al, al
jne 0x5aff58
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x18]
push ecx
push 1
push eax
mov ecx, esi
mov dword [ebp - 0x18], 0x2a
call fcn.004087e0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5aff1f
mov eax, 0x73a7f4
push eax
push 0x550
call fcn.00581bb0
add esp, 4
lea edx, [ebp - 0xa8]
push eax
push edx
call fcn.00711e28
mov eax, dword [edi]
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 0
push 0
push 0
push ecx
push 0x1f
push 0
mov ecx, edi
call dword [eax + 0x90]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x284]
push eax
call fcn.006ddd50
add esp, 4
test al, al
jne 0x5affe1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x284]
push eax
call fcn.006ddd20
add esp, 4
test al, al
jne 0x5affe1
mov eax, dword [esi + 8]
lea ecx, [ebp + 0xc]
push ecx
push 1
push eax
mov ecx, esi
mov dword [ebp + 0xc], 4
call fcn.004087e0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5affa8
mov eax, 0x73a7f4
push eax
push 0x187
call fcn.00581bb0
add esp, 4
lea edx, [ebp - 0xa8]
push eax
push edx
call fcn.00711e28
mov eax, dword [edi]
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 0
push 0
push 0
push ecx
push 0x1f
push 0
mov ecx, edi
call dword [eax + 0x90]
mov eax, dword [0x83e0a8]
test eax, eax
je 0x5b0099
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5afffa
mov eax, 0x73a7f4
lea edx, [ebp - 0xf0]
push eax
push edx
mov ecx, 0x83a9e0
call fcn.006cd5f0
cmp dword [eax], 0
sete byte [ebp + 0xf]
push 1
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.00420200
push 1
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0
call fcn.00420200
mov al, byte [ebp + 0xf]
test al, al
je 0x5b0099
mov eax, dword [esi + 8]
lea ecx, [ebp + 0xc]
push ecx
push 1
push eax
mov ecx, esi
mov dword [ebp + 0xc], 5
call fcn.004087e0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5b0060
mov eax, 0x73a7f4
push eax
push 0x188
call fcn.00581bb0
add esp, 4
lea edx, [ebp - 0xa8]
push eax
push edx
call fcn.00711e28
mov eax, dword [edi]
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 0
push 0
push 0
push ecx
push 0x1f
push 0
mov ecx, edi
call dword [eax + 0x90]
mov eax, dword [0x83c49c]
cmp eax, 0x46
jl 0x5b01ad
mov ecx, 0x83a9e0
call fcn.006dcf60
cmp eax, 0xfb7
jl 0x5b00cd
mov ecx, 0x83a9e0
call fcn.006dcf60
cmp eax, 0xfcd
jle 0x5b01ad
mov eax, dword [0x83e0ac]
test eax, eax
je 0x5b01ad
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5b00e6
mov eax, 0x73a7f4
lea edx, [ebp - 0xf0]
push eax
push edx
mov ecx, 0x83a9e0
call fcn.006cd5f0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 1
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 2
call fcn.00420200
mov eax, dword [ebp - 0xe0]
mov byte [ebp - 4], 0
test eax, eax
je 0x5b0139
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5b0130
cmp al, 0xff
je 0x5b0130
dec al
mov byte [ecx], al
jmp 0x5b0139
push ecx
call fcn.00703996
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5b01ad
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1c]
cmp eax, 6
jle 0x5b0150
cmp eax, 0x17
jne 0x5b01ad
mov eax, dword [esi + 8]
lea edx, [ebp + 0xc]
push edx
push 1
push eax
mov ecx, esi
mov dword [ebp + 0xc], 0x24
call fcn.004087e0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5b0174
mov eax, 0x73a7f4
push eax
push 0x377
call fcn.00581bb0
add esp, 4
lea ecx, [ebp - 0xa8]
push eax
push ecx
call fcn.00711e28
mov edx, dword [edi]
add esp, 0xc
lea eax, [ebp - 0xa8]
mov ecx, edi
push 0
push 0
push 0
push eax
push 0x1f
push 0
call dword [edx + 0x90]
mov eax, dword [0x8143c4]
test eax, eax
je 0x5b02ed
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebx + 0xb4]
push eax
call fcn.00529760
test eax, eax
je 0x5b01de
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x9c]
mov ebx, eax
jmp 0x5b01e0
xor ebx, ebx
mov eax, dword [0x8143cc]
test eax, eax
je 0x5b024a
test ebx, ebx
jne 0x5b024a
mov ecx, dword [esi + 8]
lea eax, [ebp + 0xc]
push eax
push 1
push ecx
mov ecx, esi
mov dword [ebp + 0xc], 0x16
call fcn.004087e0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5b0211
mov eax, 0x73a7f4
push eax
push 0x17e
call fcn.00581bb0
add esp, 4
lea edx, [ebp - 0xa8]
push eax
push edx
call fcn.00711e28
mov eax, dword [edi]
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 0
push 0
push 0
push ecx
push 0x1f
push 0
mov ecx, edi
call dword [eax + 0x90]
mov eax, dword [0x8143d4]
test eax, eax
je 0x5b02ed
cmp ebx, dword [0x8143c4]
je 0x5b02ed
mov edx, dword [edi]
push 0
push 0
push 0
push 0
push 0x48
push 0
mov ecx, edi
call dword [edx + 0x90]
mov ecx, dword [esi + 8]
lea eax, [ebp + 0xc]
push eax
push 1
push ecx
mov ecx, esi
mov dword [ebp + 0xc], 0x19
call fcn.004087e0
mov ebx, dword [edi]
push 0
push 0
push 0
push 0x18f
call fcn.00581bb0
add esp, 4
mov ecx, edi
push eax
push 0x1f
push 0
call dword [ebx + 0x90]
mov eax, dword [esi + 8]
lea edx, [ebp + 0xc]
push edx
push 1
push eax
mov ecx, esi
mov dword [ebp + 0xc], 0x1a
call fcn.004087e0
mov ebx, dword [edi]
push 0
push 0
push 0
push 0x193
call fcn.00581bb0
add esp, 4
mov ecx, edi
push eax
push 0x1f
push 0
call dword [ebx + 0x90]
mov edx, dword [edi]
push 0
push 0
push 0
push 0
push 0x48
push 0
mov ecx, edi
call dword [edx + 0x90]
mov ecx, dword [esi + 8]
lea eax, [ebp + 0xc]
push eax
push 1
push ecx
mov ecx, esi
mov dword [ebp + 0xc], 0x14
call fcn.004087e0
mov ebx, dword [edi]
push 0
push 0
push 0
push 0x168
call fcn.00581bb0
add esp, 4
mov ecx, edi
push eax
push 0x1f
push 0
call dword [ebx + 0x90]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call fcn.005317a0
add esp, 4
test al, al
jne 0x5b03ae
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5b035c
mov eax, 0x73a7f4
push eax
mov ecx, 0x7dabc0
call fcn.00513a30
test eax, eax
jne 0x5b03ae
cmp dword [0x770b54], 3
je 0x5b03ae
mov ecx, dword [esi + 8]
lea eax, [ebp + 8]
push eax
push 1
push ecx
mov ecx, esi
mov dword [ebp + 8], 0xa
call fcn.004087e0
mov ebx, dword [edi]
push 0
push 0
push 0
push 0x166
call fcn.00581bb0
add esp, 4
mov ecx, edi
push eax
push 0x1f
push 0
call dword [ebx + 0x90]
mov edx, dword [edi]
push 0
push 0
push 0
push 0
push 0x48
push 0
mov ecx, edi
call dword [edx + 0x90]
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5b03d0
mov eax, 0x73a7f4
push eax
mov ecx, 0x83a9e0
call fcn.006dc050
test eax, eax
je 0x5b0406
mov ecx, dword [esi + 8]
lea eax, [ebp + 8]
push eax
push 1
push ecx
mov ecx, esi
mov dword [ebp + 8], 0xd
call fcn.004087e0
mov ebx, dword [edi]
push 0
push 0
push 0
push 0x13c
jmp 0x5b042b
mov eax, dword [esi + 8]
lea edx, [ebp + 8]
push edx
push 1
push eax
mov ecx, esi
mov dword [ebp + 8], 0xc
call fcn.004087e0
mov ebx, dword [edi]
push 0
push 0
push 0
push 0x13b
call fcn.00581bb0
add esp, 4
mov ecx, edi
push eax
push 0x1f
push 0
call dword [ebx + 0x90]
mov eax, dword [0x83c484]
push eax
call fcn.005317a0
add esp, 4
test al, al
je 0x5b072e
mov edx, dword [edi]
push 0
push 0
push 0
push 0
push 0x48
push 0
mov ecx, edi
call dword [edx + 0x90]
mov ecx, dword [esi + 8]
lea eax, [ebp + 8]
push eax
push 1
push ecx
mov ecx, esi
mov dword [ebp + 8], 0x2c
call fcn.004087e0
mov ebx, dword [edi]
push 0
push 0
push 0
push 0x636
call fcn.00581bb0
add esp, 4
mov ecx, edi
push eax
push 0x1f
push 0
call dword [ebx + 0x90]
cmp dword [0x770b54], 3
je 0x5b058c
mov eax, dword [esi + 8]
lea edx, [ebp + 8]
push edx
push 1
push eax
mov ecx, esi
mov dword [ebp + 8], 0x17
call fcn.004087e0
mov ebx, dword [edi]
push 0
push 0
push 0
push 0x185
call fcn.00581bb0
add esp, 4
mov ecx, edi
push eax
push 0x1f
push 0
call dword [ebx + 0x90]
mov edx, dword [esi + 8]
lea ecx, [ebp + 8]
push ecx
push 1
push edx
mov ecx, esi
mov dword [ebp + 8], 0x18
call fcn.004087e0
mov ebx, dword [edi]
push 0
push 0
push 0
push 0x186
call fcn.00581bb0
add esp, 4
mov ecx, edi
push eax
push 0x1f
push 0
call dword [ebx + 0x90]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x330]
push ecx
mov ecx, 0x83a9e0
call fcn.006f6a60
push eax
push 0x2c9
call fcn.00581bb0
add esp, 4
lea edx, [ebp - 0xa8]
push eax
push edx
call fcn.00711e28
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x23
push eax
push 1
push ecx
mov ecx, esi
call fcn.004087e0
mov edx, dword [edi]
push 0
push 0
lea eax, [ebp - 0xa8]
push 0
push eax
push 0x1f
push 0
mov ecx, edi
call dword [edx + 0x90]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x5b0598
mov ecx, 0x73a7f4
mov eax, dword [0x83e158]
test eax, eax
jne 0x5b05a6
mov eax, 0x73a7f4
push ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x330]
push edx
push eax
lea eax, [ebp - 0xa8]
push 0x78d0a4
push eax
call fcn.00711e28
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
add esp, 0x14
sar ecx, 2
cmp ecx, 1
mov dword [ebp + 8], 0x22
mov ebx, eax
jae 0x5b0688
mov edx, dword [esi + 4]
test edx, edx
je 0x5b05f6
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x5b05fb
mov ecx, 1
test edx, edx
jne 0x5b0603
xor eax, eax
jmp 0x5b0608
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [ebp - 0x14], eax
jge 0x5b0613
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00711d5b
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, esi
push eax
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.00422300
lea ecx, [ebp + 8]
mov dword [ebp + 0xc], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.00436e00
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 8]
add edx, 4
mov ecx, esi
push edx
push eax
push ebx
call fcn.00422300
mov eax, dword [esi + 4]
push eax
mov dword [ebp + 0xc], eax
call fcn.00703996
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add esp, 4
lea edx, [ebx + ecx*4]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.0041fc00
lea eax, [ebx + eax*4 + 4]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x5b0713
mov ecx, eax
sub ecx, ebx
sar ecx, 2
cmp ecx, 1
jae 0x5b06d6
lea edx, [ebx + 4]
mov ecx, esi
push edx
push eax
push ebx
call fcn.00422300
mov eax, dword [esi + 8]
lea ecx, [ebp + 8]
mov edx, eax
push ecx
sub edx, ebx
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00436e00
mov ecx, dword [esi + 8]
mov eax, ebx
cmp ebx, ecx
je 0x5b070f
mov edx, dword [ebp + 8]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x5b06c8
jmp 0x5b070f
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.00422300
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp ebx, eax
je 0x5b06fc
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, ebx
mov dword [ecx], edx
jne 0x5b06ed
lea eax, [ebx + 4]
cmp ebx, eax
je 0x5b070f
mov ecx, dword [ebp + 8]
mov dword [ebx], ecx
add ebx, 4
cmp ebx, eax
jne 0x5b0703
add dword [esi + 8], 4
mov edx, dword [edi]
push 0
push 0
lea eax, [ebp - 0xa8]
push 0
push eax
push 0x1f
push 0
mov ecx, edi
call dword [edx + 0x90]
mov edx, dword [edi]
push 0
push 0
push 0
push 0
push 0x1e
push 0
mov ecx, edi
call dword [edx + 0x90]
mov ecx, dword [0x7a1240]
mov edx, dword [0x7a123c]
mov eax, dword [edi]
inc ecx
inc edx
push ecx
push edx
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x5b078f
mov al, byte [ecx - 1]
test al, al
je 0x5b0785
cmp al, 0xff
je 0x5b0785
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
dec ecx
push ecx
call fcn.00703996
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8