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

Disassembly:
push 0xffffffffffffffff
push 0x616b0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x144]
mov ax, word [ebx + 8]
xor edx, edx
dec ax
mov dword [ebx + 0xf4], 2
mov word [ebx + 0xe4], ax
mov eax, dword [ebp]
mov cl, byte [ebp + 4]
push esi
cmp eax, 0x78
push edi
mov dword [esp + 0x10], edx
mov esi, 5
je 0x4af241
cmp eax, 0x79
je 0x4af241
cmp eax, 0x7f
je 0x4af226
cmp eax, 0x80
jne 0x4af25a
mov eax, dword [ebx + 0xf0]
mov dword [ebx + 0xe8], 0x21
or ah, 1
mov dword [ebx + 0xf0], eax
jmp 0x4af25a
mov eax, dword [ebx + 0xf0]
mov dword [ebx + 0xe8], 0xe
or ah, 1
mov dword [ebx + 0xf0], eax
test cl, cl
jne 0x4af33c
mov ecx, dword [ebx + 0xf0]
mov esi, 0x13
or cl, 0xe0
mov dword [ebx + 0xf0], ecx
mov cx, word [ebp + 0xa]
mov word [ebx + 0xe4], cx
mov al, byte [ebp + 0x13]
mov dl, byte [ebp + 0x12]
cmp al, 1
mov byte [esp + 0x10], dl
jne 0x4af294
mov esi, 0x14
lea edx, [esi + ebp]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
push ecx
push edx
lea ecx, [ebx + 0x6c]
call fcn.00401aa0
mov eax, dword [esp + 0x10]
and eax, 0xff
add esi, eax
xor eax, eax
mov cl, byte [esi + ebp]
inc esi
mov byte [esp + 0x10], cl
or ecx, 0xffffffff
lea edx, [esi + ebp]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
push ecx
push edx
lea ecx, [ebx + 0xbc]
call fcn.00401aa0
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
and edx, 0xff
add esi, edx
mov al, byte [esi + ebp]
inc esi
mov byte [esp + 0x10], al
xor eax, eax
lea edx, [esi + ebp]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
push ecx
push edx
lea ecx, [ebx + 0xa4]
call fcn.00401aa0
mov ecx, dword [esp + 0x10]
and ecx, 0xff
add esi, ecx
mov dx, word [esi + ebp]
mov word [ebx + 0x84], dx
mov ax, word [esi + ebp + 4]
mov word [ebx + 0x86], ax
mov al, 1
jmp 0x4af499
cmp cl, 1
jne 0x4af6f7
lea ecx, [esp + 0x17]
mov dword [esp + 0x144], edx
push ecx
lea ecx, [esp + 0x1c]
call fcn.00482bc0
mov eax, dword [esp + 0x150]
mov edi, 1
cmp eax, esi
mov dword [esp + 0x144], edi
jle 0x4af443
mov dl, byte [esi + ebp]
inc esi
mov byte [esp + 0x24], dl
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x16]
and edi, 0xff
push eax
lea ecx, [esi + ebp]
push edi
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x150], 2
call fcn.004be390
add esi, edi
mov dl, byte [esi + ebp]
inc esi
mov byte [esp + 0x24], dl
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x15]
and edi, 0xff
push eax
lea ecx, [esi + ebp]
push edi
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x150], 4
call fcn.004be390
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
sub esp, 8
sub eax, edx
mov ecx, esp
mov dword [esp + 0x34], esp
sub esp, 8
mov byte [esp + 0x154], 5
mov dword [ecx], edx
mov edx, esp
mov dword [ecx + 4], eax
mov dword [esp + 0x3c], esp
push edx
lea ecx, [esp + 0x5c]
add esi, edi
call fcn.00401a00
lea ecx, [esp + 0x28]
call fcn.00443640
lea ecx, [esp + 0x3c]
mov byte [esp + 0x144], 3
call fcn.00402ab0
lea ecx, [esp + 0x48]
mov byte [esp + 0x144], 1
call fcn.00402ab0
cmp esi, dword [esp + 0x150]
jl 0x4af375
mov edi, 1
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, ebp
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
jne 0x4af4b4
cmp esi, ebp
mov dword [esp + 0x144], 6
mov edi, ebp
je 0x4af483
push 0
mov ecx, esi
call fcn.0041cd60
add esi, 0x18
cmp esi, edi
jne 0x4af473
lea ecx, [esp + 0x18]
mov dword [esp + 0x144], 0xffffffff
call fcn.0041bf70
xor al, al
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x138
ret 8
lea esi, [ebx + 4]
push 0x6c3990
push esi
mov ecx, 0x6c3990
call fcn.00436ce0
push eax
lea ecx, [esp + 0x3c]
call fcn.004688a0
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4af5c3
push 0x6c3990
push esi
mov ecx, 0x6c3990
call fcn.00436ce0
push eax
lea ecx, [esp + 0x34]
call fcn.004688a0
push 0x6c3990
push 0
lea ecx, [esp + 0x2c]
call fcn.004688a0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x4af55b
lea ecx, [esp + 0x48]
call fcn.004bf070
mov dword [esp + 0x10], edi
push eax
push esi
lea ecx, [esp + 0x128]
mov byte [esp + 0x14c], 7
call fcn.004bfc40
mov dword [esp + 0x10], 3
push eax
mov ecx, 0x6c3990
mov dword [esp + 0x148], 8
call fcn.004c1040
mov esi, eax
add esi, 8
jmp 0x4af55e
lea esi, [eax + 0xc]
mov al, byte [esp + 0x10]
mov dword [esp + 0x144], 7
test al, 2
je 0x4af587
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x130]
and al, 0xfd
mov dword [esp + 0x10], eax
call fcn.00432f90
mov al, byte [esp + 0x10]
mov dword [esp + 0x144], edi
test al, 1
je 0x4af59f
lea ecx, [esp + 0x50]
call fcn.00432f90
lea edx, [esp + 0x18]
lea ecx, [esi + 8]
push edx
call fcn.0041c410
call sub.KERNEL32.dll_GetTickCount
mov dword [esi], eax
mov ax, word [ebx + 0xe4]
mov word [esi + 4], ax
jmp 0x4af696
push 0
sub esp, 8
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
push 0
lea ecx, [esp + 0x2c]
call fcn.0046c560
mov ecx, eax
call fcn.00401a00
lea ecx, [esp + 0x40]
call fcn.00432a90
mov ecx, eax
add ecx, 0x10
call fcn.004dba60
cmp eax, 0xffffffff
jne 0x4af696
mov edx, dword [esp + 0x34]
mov eax, 0x2aaaaaab
mov edi, dword [esp + 0x18]
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x14]
lea esi, [edx + 0x14]
sub ecx, ebx
imul ecx
mov ecx, edx
mov edx, dword [esp + 0x1c]
sar ecx, 2
mov eax, ecx
sub edx, edi
shr eax, 0x1f
add ecx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jae 0x4af673
mov eax, ebx
mov dword [esi], edi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov dword [esi + 4], ecx
add esi, 8
lea ecx, [esp + 0x24]
push esi
mov dword [esp + 0x20], eax
call fcn.0041a0e0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esi], edx
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov dl, byte [esp + 0x15]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x16], dl
lea edx, [esp + 0x16]
mov eax, dword [ecx + 0x18]
add ecx, 0x14
push edx
mov edx, dword [esp + 0x20]
push edx
push edi
push eax
call fcn.004c43e0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov dword [esp + 0x144], 9
je 0x4af6bf
mov ecx, esi
call fcn.0041a6d0
add esi, 0x18
cmp esi, edi
jne 0x4af6ad
mov esi, dword [esp + 0x18]
test esi, esi
mov dword [esp + 0x144], 0xa
je 0x4af6f0
mov ecx, dword [esp + 0x20]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x20]
shr eax, 0x1f
add edx, eax
push edx
push esi
call fcn.004e1510
mov al, 1
jmp 0x4af499
cmp cl, 2
jne 0x4af497
mov ecx, dword [ebx + 0xf0]
mov eax, dword [esp + 0x150]
or ecx, 8
cmp eax, esi
mov dword [ebx + 0xf0], ecx
mov dword [esp + 0x24], 1
jle 0x4af8e6
add ebx, 0x40
lea ecx, [esp + 0x64]
call fcn.004047a0
lea ecx, [esp + 0x70]
mov dword [esp + 0x144], 0xb
call fcn.004047a0
lea ecx, [esp + 0x15]
mov byte [esp + 0x144], 0xc
push ecx
lea ecx, [esp + 0x80]
call fcn.00482bc0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x144], 0xd
mov byte [esp + 0xa0], 0
call fcn.00403f90
lea ecx, [esp + 0xc0]
mov byte [esp + 0x144], 0xe
call fcn.00403f90
lea ecx, [esp + 0xcc]
mov byte [esp + 0x144], 0xf
call fcn.00403f90
lea ecx, [esp + 0x5c]
mov byte [esp + 0x144], 0x10
call fcn.004dc020
mov eax, dword [esp + 0x24]
add esi, 4
mov byte [esp + 0x5c], al
mov edx, dword [esi + ebp - 4]
inc eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0x24], eax
mov al, byte [esi + ebp]
inc esi
mov dword [esp + 0x144], 0x11
test al, al
mov byte [esp + 0x10], al
je 0x4af802
lea edx, [esi + ebp]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
push ecx
push edx
lea ecx, [esp + 0x78]
call fcn.00401aa0
mov eax, dword [esp + 0x10]
and eax, 0xff
add esi, eax
mov eax, dword [ebx + 4]
mov cx, word [esi + ebp]
add esi, 4
mov word [esp + 0x98], cx
mov ecx, dword [ebx + 8]
mov edx, dword [esi + ebp]
add esi, 8
cmp eax, ecx
mov dword [esp + 0x88], edx
je 0x4af84e
lea ecx, [esp + 0x5c]
push ecx
push eax
call fcn.00491610
mov eax, dword [ebx + 4]
add esp, 8
add eax, 0xc4
mov dword [ebx + 4], eax
jmp 0x4af864
push 1
lea edx, [esp + 0x1b]
push 1
lea ecx, [esp + 0x64]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.00435160
lea ecx, [esp + 0xcc]
mov dword [esp + 0x144], 0x16
call fcn.004207d0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x144], 0x15
call fcn.004207d0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x144], 0x14
call fcn.00402ab0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x144], 0x13
call fcn.004350f0
lea ecx, [esp + 0x70]
mov byte [esp + 0x144], 0x12
call fcn.00402ab0
lea ecx, [esp + 0x64]
mov dword [esp + 0x144], 0xffffffff
call fcn.00402ab0
cmp esi, dword [esp + 0x150]
jl 0x4af729
mov al, 1
jmp 0x4af499