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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], edx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], eax
mov esi, dword [ebp - 0xc]
xor eax, eax
add esi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
lea ebx, [ebp - 0x11c]
lea edx, [esi - 1]
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
test dword [ebp + 0x10], 0xe20f5a6f
je 0x5a9c70
mov eax, 0xfffffffd
jmp 0x5aa832
cmp dword [ebp - 0x64], 0
je 0x5a9c88
cmp dword [ebp - 0xc], 0
je 0x5a9c88
cmp dword [ebp + 0xc], 0
jne 0x5a9c92
cmp dword [ebp + 8], 0
jle 0x5a9c92
mov eax, 0xfffffffe
jmp 0x5aa832
cmp dword [ebp + 8], 0
jge 0x5a9ca2
mov eax, 0xfffffff1
jmp 0x5aa832
mov edx, dword [ebp - 0x64]
movzx ecx, word [edx + 0x18]
add ecx, dword [ebp - 0x64]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp - 0x64]
movzx eax, word [ecx + 0x1c]
mov dword [ebx + 0x20], eax
xor eax, eax
mov edx, dword [ebp - 0x64]
movzx ecx, word [edx + 0x1a]
mov dword [ebx + 0x24], ecx
mov dword [ebp - 0x5c], eax
mov dword [ebx + 4], 0x989680
mov dword [ebx + 8], 0x989680
xor edx, edx
mov dword [ebx + 0x98], edx
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 8], 0
je 0x5a9d43
mov edx, dword [ebp - 8]
mov ecx, dword [edx]
mov dword [ebp - 0x68], ecx
test byte [ebp - 0x68], 1
je 0x5a9d04
mov eax, dword [ebp - 8]
mov edx, dword [eax + 4]
mov dword [ebp - 0x5c], edx
test byte [ebp - 0x68], 2
je 0x5a9d13
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov dword [ebx + 4], eax
test byte [ebp - 0x68], 0x10
je 0x5a9d22
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x14]
mov dword [ebx + 8], ecx
test byte [ebp - 0x68], 4
je 0x5a9d34
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x98], edx
test byte [ebp - 0x68], 8
je 0x5a9d43
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x5a9d50
mov dword [ebp - 0x48], 0x5ec620
mov edx, dword [ebp - 0x64]
cmp dword [edx], 0x50435245
je 0x5a9d95
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x170]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x64]
call fcn.005abd40
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x5a9d86
mov eax, 0xfffffffc
jmp 0x5aa832
cmp dword [ebp - 0x5c], 0
je 0x5a9d95
lea edx, [ebp - 0x148]
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x64]
mov ecx, dword [ecx + 8]
or ecx, dword [ebp + 0x10]
test cl, 0x10
setne al
and eax, 1
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x64]
test byte [edx + 0xc], 8
setne cl
and ecx, 1
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x64]
test byte [eax + 0xa], 4
setne dl
and edx, 1
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
movzx eax, word [ecx + 0x1c]
movzx edx, word [edx + 0x1a]
imul edx
mov ecx, dword [ebp - 0x64]
movzx edx, word [ecx + 0x18]
add edx, dword [ebp - 0x60]
add eax, edx
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x68], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 0x88], ecx
mov ecx, dword [ebx + 0x68]
add ecx, dword [ebp + 0x18]
mov dword [ebx + 0x6c], ecx
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x64]
test byte [edx + 8], 0x20
setne cl
and ecx, 1
mov dword [ebx + 0x50], ecx
mov eax, dword [ebp - 0x64]
test byte [eax + 9], 8
setne dl
and edx, 1
mov dword [ebx + 0x44], edx
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x64]
test byte [eax + 0xb], 0x20
setne cl
and ecx, 1
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp - 0x64]
test byte [ecx + 0xb], 2
setne al
and eax, 1
mov dword [ebx + 0x48], eax
test byte [ebp + 0x10], 0x80
setne dl
and edx, 1
mov dword [ebx + 0x3c], edx
test byte [ebp + 0x11], 1
setne cl
and ecx, 1
mov dword [ebx + 0x40], ecx
test byte [ebp + 0x11], 4
setne al
and eax, 1
mov dword [ebx + 0x54], eax
test byte [ebp + 0x13], 0x10
setne dl
and edx, 1
mov dword [ebx + 0x58], edx
test byte [ebp + 0x13], 8
je 0x5a9e8b
mov ecx, 2
jmp 0x5a9e9a
test byte [ebp + 0x11], 0x80
je 0x5a9e98
mov ecx, 1
jmp 0x5a9e9a
xor ecx, ecx
mov dword [ebx + 0x7c], ecx
xor eax, eax
mov dword [ebx + 0x5c], eax
xor edx, edx
mov dword [ebx + 0x9c], edx
xor ecx, ecx
mov dword [ebx + 0x94], ecx
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x30], eax
mov edx, dword [ebp - 0x48]
add edx, 0x340
mov dword [ebx + 0x34], edx
mov ecx, dword [ebp + 0x10]
and ecx, 0x1800000
sub ecx, 1
jb 0x5a9ee4
sub ecx, 0x7fffff
je 0x5a9f09
sub ecx, 0x800000
je 0x5a9f12
jmp 0x5a9f19
mov eax, dword [ebp - 0x64]
test dword [eax + 8], 0x1800000
je 0x5a9f02
mov edx, dword [ebp - 0x64]
test byte [edx + 0xa], 0x80
setne cl
and ecx, 1
mov dword [ebx + 0x60], ecx
jmp 0x5a9f23
xor eax, eax
mov dword [ebx + 0x60], eax
jmp 0x5a9f23
mov dword [ebx + 0x60], 1
jmp 0x5a9f23
xor edx, edx
mov dword [ebx + 0x60], edx
jmp 0x5a9f23
mov eax, 0xffffffe9
jmp 0x5aa832
test byte [ebp + 0x12], 0x70
jne 0x5a9f31
mov edx, dword [ebp - 0x64]
mov ecx, dword [edx + 8]
jmp 0x5a9f34
mov ecx, dword [ebp + 0x10]
and ecx, 0x700000
cmp ecx, 0x300000
jg 0x5a9f5b
je 0x5a9f88
sub ecx, 1
jb 0x5a9f6d
sub ecx, 0xfffff
je 0x5a9f76
sub ecx, 0x100000
je 0x5a9f7f
jmp 0x5a9fa3
sub ecx, 0x400000
je 0x5a9f91
sub ecx, 0x100000
je 0x5a9f9a
jmp 0x5a9fa3
mov dword [ebp - 0x24], 0xd0a
jmp 0x5a9fad
mov dword [ebp - 0x24], 0xd
jmp 0x5a9fad
mov dword [ebp - 0x24], 0xa
jmp 0x5a9fad
mov dword [ebp - 0x24], 0xd0a
jmp 0x5a9fad
mov dword [ebp - 0x24], 0xffffffff
jmp 0x5a9fad
mov dword [ebp - 0x24], 0xfffffffe
jmp 0x5a9fad
mov eax, 0xffffffe9
jmp 0x5aa832
cmp dword [ebp - 0x24], 0xfffffffe
jne 0x5a9fbc
mov dword [ebx + 0x18], 2
jmp 0x5aa003
cmp dword [ebp - 0x24], 0
jge 0x5a9fcb
mov dword [ebx + 0x18], 1
jmp 0x5aa003
xor edx, edx
mov dword [ebx + 0x18], edx
cmp dword [ebp - 0x24], 0xff
jle 0x5a9ff6
mov dword [ebx + 0x1c], 2
mov ecx, dword [ebp - 0x24]
sar ecx, 8
and cl, 0xff
mov byte [ebx + 0x2c], cl
mov al, byte [ebp - 0x24]
and al, 0xff
mov byte [ebx + 0x2d], al
jmp 0x5aa003
mov dword [ebx + 0x1c], 1
mov dl, byte [ebp - 0x24]
mov byte [ebx + 0x2c], dl
cmp dword [ebx + 0x7c], 0
je 0x5aa01c
mov ecx, dword [ebp - 0x64]
test byte [ecx + 0xc], 1
je 0x5aa01c
mov eax, 0xfffffff3
jmp 0x5aa832
cmp dword [ebp - 0x44], 0
je 0x5aa083
test byte [ebp + 0x11], 0x20
jne 0x5aa083
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
call fcn.005abe94
test eax, eax
jl 0x5aa041
mov eax, 0xfffffff6
jmp 0x5aa832
cmp dword [ebp + 0x14], 0
jle 0x5aa083
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0x18]
jge 0x5aa083
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp + 0x14]
xor eax, eax
mov al, byte [ecx + edi]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0x7f
jle 0x5aa083
and dword [ebp - 0x6c], 0xc0
cmp dword [ebp - 0x6c], 0
je 0x5aa083
cmp dword [ebp - 0x6c], 0xc0
je 0x5aa083
mov eax, 0xfffffff5
jmp 0x5aa832
mov edx, dword [ebp - 0x64]
mov ecx, dword [edx + 8]
and ecx, 7
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 8]
mov ecx, 3
cdq
idiv ecx
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x64]
movzx ecx, word [edx + 0x12]
test ecx, ecx
jle 0x5aa0fa
mov eax, dword [ebp - 0x14]
mov ecx, 3
cdq
idiv ecx
mov edx, dword [ebp - 0x64]
movzx ecx, word [edx + 0x12]
cmp eax, ecx
jg 0x5aa0fa
mov eax, dword [ebp - 0x64]
movzx ecx, word [eax + 0x12]
lea eax, [ecx + ecx*2]
add eax, 3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 2
call fcn.00595344
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x5aa0f1
mov eax, 0xfffffffa
jmp 0x5aa832
mov dword [ebp - 0x2c], 1
jmp 0x5aa100
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x10], ecx
mov eax, dword [ebp - 0x14]
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x14], eax
xor ecx, ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x84], 0xffffffff
mov eax, dword [ebp - 0x64]
movzx edx, word [eax + 0x10]
add edx, edx
add edx, 2
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jle 0x5aa142
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebx + 0xc], 0
je 0x5aa183
mov edx, dword [ebp - 0x14]
shl edx, 2
add edx, dword [ebx + 0xc]
mov dword [ebp - 0x70], edx
mov ecx, dword [ebp - 0x10]
sar ecx, 1
jns 0x5aa15e
adc ecx, 0
shl ecx, 2
mov eax, dword [ebp - 0x70]
sub eax, ecx
add eax, 4
mov dword [ebp - 0x74], eax
jmp 0x5aa177
mov edx, dword [ebp - 0x70]
mov dword [edx], 0xffffffff
sub dword [ebp - 0x70], 4
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [ebp - 0x74]
jae 0x5aa16e
cmp dword [ebp - 0x30], 0
jne 0x5aa1e2
mov eax, dword [ebp - 0x64]
test byte [eax + 0xc], 2
je 0x5aa1c4
mov edx, dword [ebp - 0x64]
movzx ecx, word [edx + 0x14]
and ecx, 0xff
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x64]
test byte [eax + 0x15], 1
setne dl
and edx, 1
mov dword [ebp - 0x3c], edx
dec edx
jne 0x5aa1e2
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [eax + ecx]
mov dword [ebp - 0x18], ecx
jmp 0x5aa1e2
cmp dword [ebp - 0x34], 0
jne 0x5aa1e2
cmp dword [ebp - 0x5c], 0
je 0x5aa1e2
mov eax, dword [ebp - 0x5c]
test byte [eax + 4], 1
je 0x5aa1e2
mov edx, dword [ebp - 0x5c]
add edx, 8
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x64]
test byte [ecx + 0xc], 4
je 0x5aa21c
mov eax, dword [ebp - 0x64]
movzx edx, word [eax + 0x16]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x64]
test byte [ecx + 0x17], 1
setne al
and eax, 1
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
movzx edx, byte [edx + eax + 0x100]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x78], ecx
cmp dword [ebx + 0xc], 0
je 0x5aa244
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
shl edx, 2
add edx, eax
cmp edx, eax
jbe 0x5aa244
mov dword [eax], 0xffffffff
add eax, 4
cmp edx, eax
ja 0x5aa237
cmp dword [ebp - 0x38], 0
je 0x5aa33f
cmp dword [ebp - 0x44], 0
mov edi, esi
je 0x5aa2dc
jmp 0x5aa275
inc edi
jmp 0x5aa260
inc edi
cmp edi, dword [ebp - 0x50]
jae 0x5aa275
xor eax, eax
mov al, byte [edi]
and eax, 0xc0
cmp eax, 0x80
je 0x5aa25f
cmp edi, dword [ebx + 0x6c]
jae 0x5aa33c
cmp dword [ebx + 0x18], 0
je 0x5aa2ad
cmp edi, dword [ebx + 0x6c]
jae 0x5aa2a2
lea edx, [ebx + 0x1c]
push edx
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x18]
mov eax, edi
call fcn.005ac3d8
test eax, eax
jne 0x5aa2a6
xor ecx, ecx
jmp 0x5aa2d5
mov ecx, 1
jmp 0x5aa2d5
mov eax, dword [ebx + 0x6c]
sub eax, dword [ebx + 0x1c]
cmp edi, eax
ja 0x5aa2cc
mov dl, byte [edi]
cmp dl, byte [ebx + 0x2c]
jne 0x5aa2cc
cmp dword [ebx + 0x1c], 1
je 0x5aa2d0
mov cl, byte [edi + 1]
cmp cl, byte [ebx + 0x2d]
je 0x5aa2d0
xor ecx, ecx
jmp 0x5aa2d5
mov ecx, 1
test ecx, ecx
je 0x5aa25c
jmp 0x5aa33c
inc edi
cmp edi, dword [ebx + 0x6c]
jae 0x5aa33c
cmp dword [ebx + 0x18], 0
je 0x5aa310
cmp edi, dword [ebx + 0x6c]
jae 0x5aa305
lea eax, [ebx + 0x1c]
push eax
mov edx, dword [ebp - 0x44]
push edx
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x18]
mov eax, edi
call fcn.005ac3d8
test eax, eax
jne 0x5aa309
xor ecx, ecx
jmp 0x5aa338
mov ecx, 1
jmp 0x5aa338
mov eax, dword [ebx + 0x6c]
sub eax, dword [ebx + 0x1c]
cmp edi, eax
ja 0x5aa32f
mov dl, byte [edi]
cmp dl, byte [ebx + 0x2c]
jne 0x5aa32f
cmp dword [ebx + 0x1c], 1
je 0x5aa333
mov cl, byte [edi + 1]
cmp cl, byte [ebx + 0x2d]
je 0x5aa333
xor ecx, ecx
jmp 0x5aa338
mov ecx, 1
test ecx, ecx
je 0x5aa2db
mov dword [ebp - 0x50], edi
test byte [ebp + 0x13], 4
jne 0x5aa529
cmp dword [ebp - 0x18], 0
jl 0x5aa38f
cmp dword [ebp - 0x3c], 0
je 0x5aa378
jmp 0x5aa358
inc esi
cmp esi, dword [ebp - 0x50]
jae 0x5aa529
xor eax, eax
mov al, byte [esi]
mov edx, dword [ebx + 0x30]
xor ecx, ecx
mov cl, byte [edx + eax]
cmp ecx, dword [ebp - 0x18]
jne 0x5aa357
jmp 0x5aa529
inc esi
cmp esi, dword [ebp - 0x50]
jae 0x5aa529
xor eax, eax
mov al, byte [esi]
cmp eax, dword [ebp - 0x18]
jne 0x5aa377
jmp 0x5aa529
cmp dword [ebp - 0x34], 0
je 0x5aa4da
mov edx, dword [ebx + 0x68]
add edx, dword [ebp + 0x14]
cmp esi, edx
jbe 0x5aa529
cmp dword [ebp - 0x44], 0
je 0x5aa446
jmp 0x5aa3ce
inc esi
jmp 0x5aa3b7
inc esi
cmp esi, dword [ebp - 0x50]
jae 0x5aa3ce
xor ecx, ecx
mov cl, byte [esi]
and ecx, 0xc0
cmp ecx, 0x80
je 0x5aa3b6
cmp esi, dword [ebp - 0x50]
jae 0x5aa4b3
cmp dword [ebx + 0x18], 0
je 0x5aa407
mov edi, dword [ebx + 0x68]
cmp esi, edi
jbe 0x5aa3fc
lea eax, [ebx + 0x1c]
mov ecx, edi
push eax
mov eax, esi
mov edx, dword [ebp - 0x44]
push edx
mov edx, dword [ebx + 0x18]
call fcn.005ac540
test eax, eax
jne 0x5aa400
xor ecx, ecx
jmp 0x5aa43b
mov ecx, 1
jmp 0x5aa43b
mov ecx, dword [ebx + 0x68]
add ecx, dword [ebx + 0x1c]
cmp esi, ecx
jb 0x5aa432
mov eax, dword [ebx + 0x1c]
neg eax
mov dl, byte [esi + eax]
cmp dl, byte [ebx + 0x2c]
jne 0x5aa432
cmp dword [ebx + 0x1c], 1
je 0x5aa436
mov ecx, dword [ebx + 0x1c]
neg ecx
mov al, byte [esi + ecx + 1]
cmp al, byte [ebx + 0x2d]
je 0x5aa436
xor ecx, ecx
jmp 0x5aa43b
mov ecx, 1
test ecx, ecx
je 0x5aa3b3
jmp 0x5aa4b3
inc esi
cmp esi, dword [ebp - 0x50]
jae 0x5aa4b3
cmp dword [ebx + 0x18], 0
je 0x5aa47b
mov edi, dword [ebx + 0x68]
cmp esi, edi
jbe 0x5aa470
lea eax, [ebx + 0x1c]
mov ecx, edi
push eax
mov eax, esi
mov edx, dword [ebp - 0x44]
push edx
mov edx, dword [ebx + 0x18]
call fcn.005ac540
test eax, eax
jne 0x5aa474
xor ecx, ecx
jmp 0x5aa4af
mov ecx, 1
jmp 0x5aa4af
mov ecx, dword [ebx + 0x68]
add ecx, dword [ebx + 0x1c]
cmp esi, ecx
jb 0x5aa4a6
mov eax, dword [ebx + 0x1c]
neg eax
mov dl, byte [esi + eax]
cmp dl, byte [ebx + 0x2c]
jne 0x5aa4a6
cmp dword [ebx + 0x1c], 1
je 0x5aa4aa
mov ecx, dword [ebx + 0x1c]
neg ecx
mov al, byte [esi + ecx + 1]
cmp al, byte [ebx + 0x2d]
je 0x5aa4aa
xor ecx, ecx
jmp 0x5aa4af
mov ecx, 1
test ecx, ecx
je 0x5aa445
xor eax, eax
mov al, byte [esi - 1]
cmp eax, 0xd
jne 0x5aa529
cmp dword [ebx + 0x18], 1
je 0x5aa4c9
cmp dword [ebx + 0x18], 2
jne 0x5aa529
cmp esi, dword [ebp - 0x50]
jae 0x5aa529
xor edx, edx
mov dl, byte [esi]
cmp edx, 0xa
jne 0x5aa529
inc esi
jmp 0x5aa529
cmp dword [ebp - 0x4c], 0
je 0x5aa529
cmp esi, dword [ebp - 0x50]
jae 0x5aa529
xor eax, eax
mov al, byte [esi]
mov ecx, eax
and ecx, 7
mov edx, 1
shl edx, cl
shr eax, 3
mov ecx, dword [ebp - 0x4c]
movzx eax, byte [ecx + eax]
and edx, eax
jne 0x5aa529
inc esi
cmp dword [ebp - 0x44], 0
je 0x5aa524
jmp 0x5aa50d
inc esi
cmp esi, dword [ebp - 0x50]
jae 0x5aa524
xor edx, edx
mov dl, byte [esi]
and edx, 0xc0
cmp edx, 0x80
je 0x5aa50c
cmp esi, dword [ebp - 0x50]
jb 0x5aa4e5
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x50], ecx
test byte [ebp + 0x13], 4
jne 0x5aa5da
cmp dword [ebx + 0x7c], 0
jne 0x5aa5da
cmp dword [ebp - 0x5c], 0
je 0x5aa566
mov eax, dword [ebp - 0x5c]
test byte [eax + 4], 2
je 0x5aa566
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x50]
sub edx, esi
cmp edx, dword [eax + 0x28]
jae 0x5aa566
xor edi, edi
jmp 0x5aa73d
cmp dword [ebp - 0x1c], 0
jl 0x5aa5da
mov eax, dword [ebp - 0x50]
sub eax, esi
cmp eax, 0x3e8
jge 0x5aa5da
cmp dword [ebp - 0x18], 0
jl 0x5aa585
mov eax, 1
jmp 0x5aa587
xor eax, eax
add eax, esi
cmp eax, dword [ebp - 0x58]
jbe 0x5aa5da
cmp dword [ebp - 0x40], 0
je 0x5aa5b2
cmp eax, dword [ebp - 0x50]
jae 0x5aa5cb
xor edx, edx
mov dl, byte [eax]
inc eax
cmp edx, dword [ebp - 0x1c]
je 0x5aa5a8
cmp edx, dword [ebp - 0x20]
jne 0x5aa5ab
dec eax
jmp 0x5aa5cb
cmp eax, dword [ebp - 0x50]
jb 0x5aa599
jmp 0x5aa5cb
cmp eax, dword [ebp - 0x50]
jae 0x5aa5cb
mov cl, byte [eax]
xor edx, edx
mov dl, cl
inc eax
cmp edx, dword [ebp - 0x1c]
jne 0x5aa5c6
dec eax
jmp 0x5aa5cb
cmp eax, dword [ebp - 0x50]
jb 0x5aa5b7
cmp eax, dword [ebp - 0x50]
jb 0x5aa5d7
xor edi, edi
jmp 0x5aa73d
mov dword [ebp - 0x58], eax
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x78], esi
xor eax, eax
mov ecx, esi
mov dword [ebx], eax
push 0
push 2
push ebx
mov edx, dword [ebp - 0x28]
mov eax, esi
push edx
push 0
push 0
push 0
mov edx, dword [ebx + 0x64]
call fcn.0059cefc
cmp dword [ebx + 0x5c], 0
mov edi, eax
je 0x5aa613
cmp dword [ebp - 0x54], 0
jne 0x5aa613
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x54], eax
mov edx, edi
cmp edx, 0xfffffc1c
jg 0x5aa62f
je 0x5aa647
sub edx, 0xfffffc1a
je 0x5aa684
dec edx
je 0x5aa654
jmp 0x5aa73d
add edx, 0x3e3
sub edx, 2
jb 0x5aa654
sub edx, 0x3e1
je 0x5aa654
jmp 0x5aa73d
cmp esi, dword [ebx + 0x70]
je 0x5aa654
mov ecx, dword [ebx + 0x70]
mov dword [ebp - 0x7c], ecx
jmp 0x5aa68b
lea ecx, [esi + 1]
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x44], 0
je 0x5aa68b
jmp 0x5aa665
inc dword [ebp - 0x7c]
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x50]
jae 0x5aa68b
mov edx, dword [ebp - 0x7c]
xor ecx, ecx
mov cl, byte [edx]
and ecx, 0xc0
cmp ecx, 0x80
je 0x5aa662
jmp 0x5aa68b
xor edi, edi
jmp 0x5aa73d
xor edi, edi
cmp dword [ebp - 0x38], 0
je 0x5aa6ee
cmp dword [ebx + 0x18], 0
je 0x5aa6c2
cmp esi, dword [ebx + 0x6c]
jae 0x5aa6b7
lea eax, [ebx + 0x1c]
push eax
mov edx, dword [ebp - 0x44]
push edx
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.005ac3d8
test eax, eax
jne 0x5aa6bb
xor ecx, ecx
jmp 0x5aa6ea
mov ecx, 1
jmp 0x5aa6ea
mov ecx, dword [ebx + 0x6c]
sub ecx, dword [ebx + 0x1c]
cmp esi, ecx
ja 0x5aa6e1
mov al, byte [esi]
cmp al, byte [ebx + 0x2c]
jne 0x5aa6e1
cmp dword [ebx + 0x1c], 1
je 0x5aa6e5
mov dl, byte [esi + 1]
cmp dl, byte [ebx + 0x2d]
je 0x5aa6e5
xor ecx, ecx
jmp 0x5aa6ea
mov ecx, 1
test ecx, ecx
jne 0x5aa73d
cmp dword [ebp - 0x30], 0
mov esi, dword [ebp - 0x7c]
jne 0x5aa73d
cmp esi, dword [ebp - 0x50]
ja 0x5aa73d
xor eax, eax
mov al, byte [esi - 1]
cmp eax, 0xd
jne 0x5aa730
cmp esi, dword [ebp - 0x50]
jae 0x5aa730
xor edx, edx
mov dl, byte [esi]
cmp edx, 0xa
jne 0x5aa730
mov ecx, dword [ebp - 0x64]
test byte [ecx + 0xc], 0x20
jne 0x5aa730
cmp dword [ebx + 0x18], 1
je 0x5aa72f
cmp dword [ebx + 0x18], 2
je 0x5aa72f
cmp dword [ebx + 0x1c], 2
jne 0x5aa730
inc esi
xor ecx, ecx
mov dword [ebx + 0x9c], ecx
jmp 0x5aa21c
cmp edi, 1
je 0x5aa74a
cmp edi, 0xfffffc19
jne 0x5aa7c4
cmp dword [ebp - 0x2c], 0
je 0x5aa78a
cmp dword [ebp + 8], 4
jl 0x5aa770
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0xc]
add ecx, 0xfffffffe
add edx, 8
shl ecx, 2
mov eax, dword [ebp + 0xc]
add eax, 8
call fcn.005953c8
mov ecx, dword [ebx + 0x80]
cmp ecx, dword [ebp + 8]
jle 0x5aa782
mov dword [ebx + 0x38], 1
mov eax, dword [ebx + 0xc]
call fcn.005951f4
cmp dword [ebx + 0x38], 0
je 0x5aa794
xor edi, edi
jmp 0x5aa7a1
mov edi, dword [ebx + 0x80]
sar edi, 1
jns 0x5aa7a1
adc edi, 0
cmp dword [ebp + 8], 2
jge 0x5aa7ab
xor edi, edi
jmp 0x5aa814
mov eax, dword [ebx + 0x70]
mov edx, dword [ebp + 0xc]
sub eax, dword [ebx + 0x68]
mov dword [edx], eax
mov ecx, dword [ebx + 0x74]
mov esi, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x68]
mov dword [esi + 4], ecx
jmp 0x5aa814
cmp dword [ebp - 0x2c], 0
je 0x5aa7d2
mov eax, dword [ebx + 0xc]
call fcn.005951f4
test edi, edi
je 0x5aa7df
cmp edi, 0xfffffff4
je 0x5aa7df
mov eax, edi
jmp 0x5aa832
cmp dword [ebp - 0x54], 0
je 0x5aa811
xor edx, edx
mov dword [ebx + 0x9c], edx
cmp dword [ebp + 8], 1
jle 0x5aa80a
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edi, 0xfffffff4
jmp 0x5aa814
or edi, 0xffffffff
cmp dword [ebp - 8], 0
je 0x5aa830
mov eax, dword [ebp - 8]
test byte [eax], 0x20
je 0x5aa830
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x18]
mov ebx, dword [ebx + 0x9c]
mov dword [ecx], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14