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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x2b4]
cmp eax, dword [ecx + 8]
jbe 0x5b01ae
sub esp, 0x334
mov ecx, dword [esp + 0x338]
mov edx, dword [ecx + 0x138]
mov eax, dword [ecx + 0x13c]
test edx, edx
je 0x5af633
nop
movzx ebx, byte [0x7bb648]
test bl, bl
je 0x5af5f9
mov dword [0x7bb64c], edx
mov ebx, dword [0x7e1c20]
test ebx, ebx
jne 0x5af5ee
mov dword [0x7bb650], eax
jmp 0x5af5f9
lea edi, [0x7bb650]
call fcn.004610d0
mov dword [esp + 0x278], edx
mov dword [esp + 0x27c], eax
mov edx, dword [esp + 0x278]
test edx, edx
je 0x5af62b
nop
movzx ebx, byte [edx + 0xf]
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x5af639
or ebx, 0x80
jmp 0x5af639
xor ebx, ebx
xor edx, edx
xor eax, eax
jmp 0x5af639
xor ebx, ebx
xor edx, edx
xor eax, eax
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x1f
call fcn.004ae8a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
and eax, 0x1f
mov dword [esp + 0x64], eax
cmp eax, 9
ja 0x5af68c
cmp eax, 7
jne 0x5af670
mov ecx, dword [ecx]
xor ebx, ebx
jmp 0x5af6b2
cmp eax, 8
jne 0x5af67c
movzx ecx, byte [ecx]
xor ebx, ebx
jmp 0x5af6b2
cmp eax, 9
jne 0x5b0173
movzx ecx, word [ecx]
xor ebx, ebx
jmp 0x5af6b2
cmp eax, 0xa
jne 0x5af697
mov ecx, dword [ecx]
xor ebx, ebx
jmp 0x5af6b2
cmp eax, 0xb
jne 0x5af6a5
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov ecx, edx
jmp 0x5af6b2
cmp eax, 0xc
jne 0x5b0173
mov ecx, dword [ecx]
xor ebx, ebx
test ebx, ebx
sete dl
test ecx, ecx
sete bl
and edx, ebx
test dl, dl
jne 0x5afc52
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x338]
movzx ebx, byte [edx + 0x294]
test bl, bl
je 0x5af719
lea edi, [esp + 0x98]
xor eax, eax
call fcn.00461318
mov ecx, dword [edx + 0x78]
mov esi, dword [edx + 0x7c]
lea ebx, [0x606220]
cmp ecx, ebx
jne 0x5b015d
lea edi, [esp + 0x98]
call fcn.00461630
mov ecx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x24]
sub ebx, ecx
jmp 0x5af754
lea edi, [esp + 0x178]
xor eax, eax
call fcn.00461314
mov ecx, dword [edx + 0x78]
mov esi, dword [edx + 0x7c]
lea ebx, [0x605ea0]
cmp ecx, ebx
jne 0x5b0147
lea edi, [esp + 0x178]
call fcn.00461608
mov ecx, dword [esp + 0x190]
mov ebx, dword [esp + 0x24]
sub ebx, ecx
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.005a8720
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x338]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp eax, edx
jbe 0x5af782
mov edx, dword [0x7bb130]
xor ebx, ebx
jmp 0x5af7ba
mov edx, dword [ecx + 0x28c]
mov ebx, dword [ecx + 0x288]
mov ebp, dword [ecx + 0x290]
cmp edx, eax
jb 0x5b0140
sub edx, eax
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
cmp edx, 3
jbe 0x5b0134
mov ebx, dword [ebp + ebx]
xor edx, edx
test edx, edx
jne 0x5afc40
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], ebx
lea eax, [0x601260]
mov dword [esp], eax
call fcn.0040b6c0
mov esi, dword [esp + 4]
mov dword [esp + 0x270], esi
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x5af8b1
cmp eax, 2
je 0x5af873
cmp eax, 3
jne 0x5af838
lea edi, [esp + 0x68]
call fcn.004617e8
lea eax, [0x601260]
mov dword [esp], eax
lea ecx, [esp + 0x68]
mov dword [esp + 4], ecx
call fcn.00408f60
mov eax, dword [esp + 8]
lea ecx, [0x601260]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b3850
mov eax, dword [esp + 8]
jmp 0x5af8ed
lea edi, [esp + 0x68]
call fcn.004617e8
lea eax, [0x601260]
mov dword [esp], eax
lea ecx, [esp + 0x68]
mov dword [esp + 4], ecx
call fcn.00408f60
mov eax, dword [esp + 8]
lea ecx, [0x601260]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b3850
mov eax, dword [esp + 8]
jmp 0x5af8ed
lea edi, [esp + 0x68]
call fcn.004617e8
lea eax, [0x601260]
mov dword [esp], eax
lea ecx, [esp + 0x68]
mov dword [esp + 4], ecx
call fcn.00408f60
mov eax, dword [esp + 8]
lea ecx, [0x601260]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b3850
mov eax, dword [esp + 8]
add eax, 0xfffffffc
jmp 0x5af8ed
lea edi, [esp + 0x68]
call fcn.004617e8
lea eax, [0x601260]
mov dword [esp], eax
lea ecx, [esp + 0x68]
mov dword [esp + 4], ecx
call fcn.00408f60
mov eax, dword [esp + 8]
lea ecx, [0x601260]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b3850
mov eax, dword [esp + 8]
add eax, 0xfffffff8
mov ecx, dword [esp + 0x50]
lea edx, [eax + ecx]
cmp ecx, edx
setb bl
test eax, eax
xchg ebp, ebx
seta bl
xchg ebp, ebx
xchg ebp, eax
cmp al, bl
xchg ebp, eax
jne 0x5afbce
mov ebx, dword [esp + 0x338]
mov ebp, dword [ebx + 0x2ac]
cmp ebp, ecx
jbe 0x5af921
cmp ebp, edx
jae 0x5af98c
mov dword [esp + 0x280], 0
mov dword [esp + 0x284], 0
lea eax, [0x5e4740]
mov dword [esp + 0x280], eax
lea eax, [0x667c5c]
mov dword [esp + 0x284], eax
mov eax, dword [ebx + 0x2c0]
mov dword [esp], eax
lea eax, [esp + 0x280]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.004ea4b0
mov dword [esp + 0x33c], 0
add esp, 0x334
ret
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
lea edi, [esp + 0x68]
mov esi, dword [esp + 0x270]
call fcn.004617e8
lea eax, [0x601260]
mov dword [esp], eax
lea ecx, [esp + 0x68]
mov dword [esp + 4], ecx
call fcn.00408f60
mov eax, dword [esp + 8]
lea ecx, [0x601260]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b3850
mov eax, dword [esp + 8]
mov dword [esp + 0x44], eax
lea ecx, [0x5e4900]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0044a5d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x338]
mov edx, dword [ecx + 0x290]
mov ebx, dword [ecx + 0x288]
mov ebp, dword [esp + 0x34]
cmp edx, ebp
jb 0x5b012d
mov esi, dword [esp + 0x50]
cmp esi, ebp
ja 0x5b0124
sub edx, esi
neg edx
sar edx, 0x1f
and edx, esi
add edx, ebx
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x44]
cmp ebx, ebp
jl 0x5afa32
mov ebx, ebp
mov dword [esp + 0x26c], eax
cmp eax, edx
je 0x5afa4d
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00461a40
lea eax, [0x5f4d20]
mov dword [esp], eax
call fcn.0040b6c0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x44]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, dword [0x7e1c20]
test eax, eax
jne 0x5afa7e
mov eax, dword [esp + 0x26c]
mov dword [edi], eax
jmp 0x5afa8a
mov eax, dword [esp + 0x26c]
call fcn.004610d0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xffffffff
lea eax, [0x6681a8]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [0x669024]
mov dword [esp + 8], eax
lea eax, [0x7e1a80]
mov dword [esp + 0xc], eax
lea eax, [0x5d6b20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x270]
mov dword [esp + 0x14], eax
call fcn.004b24e0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x5afb5c
lea eax, [0x5f5aa0]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov dword [esp + 0x274], eax
lea edi, [esp + 0x68]
mov esi, dword [esp + 0x270]
call fcn.004617e8
lea ecx, [0x601260]
mov dword [esp], ecx
lea edx, [esp + 0x68]
mov dword [esp + 4], edx
call fcn.00408f60
mov eax, dword [esp + 8]
lea ecx, [0x601260]
mov edx, dword [esp + 0x274]
mov dword [edx], ecx
mov ecx, dword [0x7e1c20]
test ecx, ecx
jne 0x5afb43
mov dword [edx + 4], eax
jmp 0x5afb4b
lea edi, [edx + 4]
call fcn.004610d0
mov eax, dword [esp + 0x270]
mov ecx, dword [eax + 4]
xor ebx, ebx
jmp 0x5afca9
mov dword [esp + 0x280], 0
mov dword [esp + 0x284], 0
lea eax, [0x5e4740]
mov dword [esp + 0x280], eax
lea eax, [0x667c64]
mov dword [esp + 0x284], eax
mov eax, dword [esp + 0x338]
mov eax, dword [eax + 0x2c0]
mov dword [esp], eax
lea eax, [esp + 0x280]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.004ea4b0
mov dword [esp + 0x33c], 0
add esp, 0x334
ret
mov dword [esp + 0x280], 0
mov dword [esp + 0x284], 0
lea eax, [0x5e4740]
mov dword [esp + 0x280], eax
lea eax, [0x667c5c]
mov dword [esp + 0x284], eax
mov eax, dword [esp + 0x338]
mov eax, dword [eax + 0x2c0]
mov dword [esp], eax
lea eax, [esp + 0x280]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.004ea4b0
mov dword [esp + 0x33c], 0
add esp, 0x334
ret
mov dword [esp + 0x33c], 0
add esp, 0x334
ret
mov dword [esp + 0x33c], 0
add esp, 0x334
ret
lea edi, [esi + 1]
mov dword [eax + 0xc], edi
lea esi, [esi + esi*2]
mov dword [ecx + esi*4], ebp
mov dword [ecx + esi*4 + 4], edx
mov ebp, dword [esp + 0x60]
test ebp, 1
xchg ebp, ebx
setne bl
xchg ebp, ebx
lea esi, [ecx + esi*4 + 8]
xchg ebp, eax
mov byte [esi], al
xchg ebp, eax
mov ebp, dword [esp + 0x4c]
lea ebx, [ebp + 1]
mov ebp, dword [esp + 0x40]
lea ecx, [ebp + 8]
mov eax, dword [esp + 0x270]
mov edx, dword [esp + 0x274]
cmp dword [eax + 8], ebx
jle 0x5afe38
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x338]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005a8720
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x338]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp eax, edx
jbe 0x5afcef
mov ebx, dword [0x7bb130]
xor ebp, ebp
jmp 0x5afd26
mov ebx, dword [ecx + 0x28c]
mov ebp, dword [ecx + 0x288]
mov esi, dword [ecx + 0x290]
cmp ebx, eax
jb 0x5b011d
sub ebx, eax
sub esi, eax
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, eax
cmp ebx, 3
jbe 0x5b0111
mov ebp, dword [esi + ebp]
xor ebx, ebx
test ebx, ebx
jne 0x5afe2a
test ebp, 1
je 0x5afd3d
mov ebx, ebp
and ebp, 0xfffffffe
jmp 0x5afd3f
mov ebx, ebp
mov dword [esp + 0x60], ebx
lea esi, [eax + 4]
cmp edx, esi
jae 0x5afd54
mov eax, dword [0x7bb130]
xor edx, edx
jmp 0x5afd91
mov edx, dword [ecx + 0x28c]
mov edi, dword [ecx + 0x288]
mov ebx, dword [ecx + 0x290]
cmp edx, esi
jb 0x5b0108
sub ebx, eax
sub edx, eax
add ebx, 0xfffffffc
neg ebx
sar ebx, 0x1f
and esi, ebx
add edx, 0xfffffffc
cmp edx, 3
jbe 0x5b00fc
mov edx, dword [esi + edi]
mov ebx, dword [esp + 0x60]
xor eax, eax
test eax, eax
jne 0x5afe1a
mov eax, dword [esp + 0x274]
mov esi, dword [eax + 0xc]
lea edi, [esi + 1]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0x10]
cmp ebx, edi
jae 0x5afc64
mov dword [esp + 0x54], ebp
mov dword [esp + 0x2c], edx
lea eax, [0x5f56a0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
call fcn.0044a7d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x274]
mov dword [ebx + 0x10], edx
mov edx, dword [0x7e1c20]
test edx, edx
jne 0x5afdff
mov dword [ebx + 8], eax
jmp 0x5afe07
lea edi, [ebx + 8]
call fcn.004610d0
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x54]
mov esi, ecx
mov ecx, eax
mov eax, ebx
jmp 0x5afc64
mov eax, dword [esp + 0x270]
mov edx, dword [esp + 0x274]
jmp 0x5afe38
mov eax, dword [esp + 0x270]
mov edx, dword [esp + 0x274]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x5afe43
xor ecx, ecx
jmp 0x5afe64
mov dword [esp + 0x33c], edx
add esp, 0x334
ret
mov ebx, dword [esp + 0x48]
lea ecx, [ebx + 1]
lea ebx, [edx + 4]
mov edx, dword [esp + 0x274]
mov eax, ebx
cmp ecx, 0x400
jge 0x5afe43
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x338]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005a8720
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x338]
mov edx, dword [ecx + 0x2ac]
add edx, 0xfffffffc
cmp eax, edx
jbe 0x5afea9
mov edx, dword [0x7bb130]
xor ebx, ebx
jmp 0x5afee0
mov edx, dword [ecx + 0x28c]
mov ebx, dword [ecx + 0x288]
mov ebp, dword [ecx + 0x290]
cmp edx, eax
jb 0x5b00f5
sub edx, eax
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
cmp edx, 3
jbe 0x5b00e9
mov ebx, dword [eax + ebx]
xor edx, edx
test edx, edx
jne 0x5b0011
mov dword [esp + 0x28], ebx
lea edi, [esp + 0x2b0]
xor eax, eax
call fcn.00461345
mov ecx, dword [esp + 0x338]
mov edx, dword [ecx + 0xb0]
mov ebp, dword [ecx + 0xac]
test edx, edx
je 0x5aff1c
mov esi, dword [esp + 0x3c]
xor edi, edi
jmp 0x5b0033
lea edi, [esp + 0x2b0]
call fcn.00461345
lea edi, [esp + 0x2dc]
lea esi, [esp + 0x2b0]
call fcn.004617f2
mov ecx, dword [esp + 0x2e0]
mov edx, dword [esp + 0x2e4]
mov ebp, dword [esp + 0x274]
mov esi, ecx
mov ecx, dword [ebp + 0x18]
mov edi, edx
lea edx, [ecx + 1]
mov ebx, dword [ebp + 0x14]
mov ebp, dword [ebp + 0x1c]
cmp ebp, edx
jae 0x5affc9
mov dword [esp + 0x268], esi
mov dword [esp + 0x5c], edi
lea eax, [0x5f5720]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.0044a7d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x274]
mov dword [ebx + 0x1c], edx
mov edx, dword [0x7e1c20]
test edx, edx
jne 0x5affb2
mov dword [ebx + 0x14], eax
jmp 0x5affba
lea edi, [ebx + 0x14]
call fcn.004610d0
mov esi, dword [esp + 0x268]
mov edi, dword [esp + 0x5c]
mov ebx, eax
xor eax, eax
lea edx, [ecx + 1]
mov ebp, dword [esp + 0x274]
mov dword [ebp + 0x18], edx
shl ecx, 4
mov edx, dword [esp + 0x3c]
mov dword [ebx + ecx], edx
mov ebp, dword [esp + 0x28]
mov dword [ebx + ecx + 4], ebp
mov dword [ebx + ecx + 0xc], edi
mov ebp, dword [0x7e1c20]
lea edi, [ebx + ecx + 8]
test ebp, ebp
jne 0x5b0003
mov dword [ebx + ecx + 8], esi
jmp 0x5afe51
mov eax, esi
call fcn.004610d0
xor eax, eax
jmp 0x5afe51
mov edx, dword [esp + 0x274]
jmp 0x5afe43
add ebp, 0x2c
mov ebx, dword [esp + 0x3c]
mov ebx, esi
mov esi, dword [esp + 0x3c]
mov edi, ecx
mov ecx, dword [esp + 0x338]
mov dword [esp + 0x5c], edi
lea edi, [esp + 0x308]
mov esi, ebp
call fcn.004617f2
mov ecx, dword [esp + 0x318]
mov esi, ebx
mov ebx, dword [esp + 0x314]
test ecx, ecx
je 0x5b006b
mov dword [esp + 0x58], ecx
mov edi, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
jmp 0x5b0097
mov ecx, dword [esp + 0x5c]
inc ecx
cmp edx, ecx
jg 0x5b001d
mov ecx, dword [esp + 0x338]
mov ebx, esi
jmp 0x5aff1c
add ebx, 0x28
mov ecx, edx
mov edx, edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x20], ebp
mov ebp, esi
mov esi, dword [esp + 0x28]
lea edi, [esp + 0x288]
mov esi, ebx
call fcn.004617fc
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x2a8], ecx
je 0x5b00cd
mov esi, ebp
mov ebp, dword [esp + 0x20]
inc ebp
mov edi, edx
mov edx, dword [esp + 0x58]
cmp edx, ebp
jg 0x5b0082
mov edx, edi
mov ebp, esi
mov esi, dword [esp + 0x28]
jmp 0x5b006b
lea edi, [esp + 0x2b0]
lea esi, [esp + 0x308]
call fcn.004617f2
mov ebx, dword [esp + 0x28]
jmp 0x5aff28
mov eax, 3
mov ecx, edx
call fcn.00461150
mov ecx, edx
call fcn.004611c0
mov eax, 3
mov ecx, edx
call fcn.00461150
mov eax, esi
mov ecx, edx
call fcn.004611c0
mov eax, 3
mov ecx, ebx
call fcn.00461150
mov ecx, ebx
call fcn.004611c0
mov eax, esi
mov ecx, ebp
call fcn.004611c0
mov ecx, ebp
call fcn.004611a0
mov eax, 3
mov ecx, edx
call fcn.00461150
mov ecx, edx
call fcn.004611c0
mov dword [esp], ecx
mov dword [esp + 4], ebx
lea eax, [0x5e4100]
mov dword [esp + 8], eax
call fcn.00408da0
mov dword [esp], ecx
mov dword [esp + 4], ebx
lea eax, [0x5e4100]
mov dword [esp + 8], eax
call fcn.00408da0
lea eax, [0x5f0f60]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x6119f0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
lea ecx, [0x5ea280]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435ee0
nop
call fcn.0045fcc0
jmp fcn.005af590