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

Disassembly:
push 0xffffffffffffffff
push 0x62be06
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x685e38]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov esi, dword [esp + 0xc8]
mov eax, dword [esi]
mov ebp, dword [esp + 0xcc]
mov edx, dword [eax + 0x5c]
mov ecx, esi
mov dword [esp + 0x30], ebp
xor edi, edi
call edx
dec eax
cmp eax, 0x31
ja case.0x5af919.2
movzx eax, byte [eax + 0x5afc54]
jmp dword [eax*4 + 0x5afc40]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x28]
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test word [esi + 0x20], 0xfff9
mov edx, dword [esi + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
mov ecx, edi
sete cl
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x24]
cmp dword [esp + 0xd0], edi
je 0x5af99b
push ebp
push ecx
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00602490
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
add esp, 0x18
mov ecx, esi
call eax
mov edi, eax
jmp case.0x5af919.2
push ecx
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00602260
add esp, 0x14
mov edi, eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, edi
mov dword [esp + 0x30], edi
call fcn.0053d140
mov ebp, dword [esp + 0x64]
test ebp, ebp
je 0x5afa0d
mov ebx, dword [esp + 0xc4]
mov eax, dword [ebp + 4]
xor edi, edi
call fcn.005af200
push 8
mov edi, eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x5af9f6
mov dword [eax], 0
mov dword [eax + 4], edi
jmp 0x5af9f8
xor eax, eax
mov ecx, dword [esp + 0x30]
push eax
call fcn.0053cd30
mov ebp, dword [ebp]
test ebp, ebp
jne 0x5af9d1
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x5afa21
mov ecx, edi
call fcn.0053d2d0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
mov edi, eax
jmp case.0x5af919.2
mov edx, dword [esi + 0xc]
mov ebx, dword [esi + 4]
cmp ebx, edx
jne 0x5afa47
mov ecx, dword [esi + 8]
cmp ecx, dword [esi + 0x10]
je case.0x5af919.2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push eax
push edx
mov edx, dword [esp + 0xcc]
push ecx
push ebx
push 0
push edx
call fcn.005af0d0
push 8
mov edi, eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x1c
test eax, eax
je 0x5afa7b
mov dword [eax], 0
mov dword [eax + 4], edi
jmp 0x5afa7d
xor eax, eax
push eax
mov ecx, ebp
call fcn.0053cd30
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
mov ecx, esi
call edx
mov edi, eax
jmp case.0x5af919.2
lea ecx, [esp + 0x68]
mov edi, 1
call fcn.0051b930
lea eax, [esp + 0x68]
push eax
mov ecx, esi
mov dword [esp + 0xc0], 0
call fcn.005caa80
mov ebx, dword [esp + 0xd4]
test ebx, ebx
je 0x5afb36
cmp dword [esp + 0xd8], 0
je 0x5afae0
mov ecx, dword [esp + 0x88]
and ecx, 0xfffffff9
test cx, cx
je 0x5afaf0
jmp 0x5afb36
mov edx, dword [esp + 0x88]
and edx, 0xfffffff9
cmp dx, 1
jne 0x5afb36
push esi
lea ecx, [esp + 0x40]
call fcn.005caa00
add dword [esp + 0x58], ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xbc], 1
call fcn.005c9900
test eax, eax
je 0x5afb23
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x40]
call fcn.005caa80
jmp 0x5afb25
xor edi, edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0xbc], 0
call fcn.005ca810
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0xc4]
push 0
push 0
push ecx
push ebp
lea edx, [esp + 0x78]
push edx
push eax
call fcn.005af8b0
add esp, 0x18
test eax, eax
jne 0x5afb67
xor edi, edi
lea ecx, [esp + 0x68]
jmp 0x5afc06
neg edi
sbb edi, edi
and edi, 0x30
inc edi
lea ecx, [esp + 0x68]
jmp 0x5afc06
lea ecx, [esp + 0x8c]
call fcn.0051b930
lea ecx, [esp + 0x8c]
push ecx
mov ebx, 2
mov ecx, esi
mov dword [esp + 0xc0], ebx
call fcn.005caa80
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x44]
call fcn.00520ec0
mov edx, dword [esp + 0xc4]
push 0
push 0
push 0
push ebp
lea ecx, [esp + 0x4c]
push ecx
push edx
mov byte [esp + 0xd4], 3
call fcn.005af8b0
add esp, 0x18
test eax, eax
jne 0x5afbe4
xor edi, edi
jmp 0x5afbef
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
mov ecx, esi
call edx
mov edi, eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xbc], bl
call fcn.00520f30
lea ecx, [esp + 0x8c]
mov dword [esp + 0xbc], 0xffffffff
call fcn.0051c420
mov eax, edi
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.005fb9ce
add esp, 0xac
ret