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

Disassembly:
sub esp, 0x70
push ebx
mov ebx, dword [esp + 0x78]
xor eax, eax
push ebp
push esi
push edi
mov edi, dword [ebx]
mov dword [esp + 0x18], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x2c], 0x86
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
cmp dword [edi], eax
jne 0x5729e4
push 0x28
push edi
call fcn.00581f00
add esp, 8
mov ebp, eax
cmp dword [edi], 0
mov dword [esp + 0x14], ebp
jne 0x5729e4
mov edx, dword [esp + 0x8c]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x88]
movups xmmword [ebp], xmm0
movups xmmword [ebp + 0x10], xmm0
movq qword [ebp + 0x20], xmm0
mov eax, dword [edx + 8]
mov dword [ebp], eax
mov dword [ebp + 0x10], ecx
mov dword [edx + 8], ebp
mov edx, 0x96
movzx eax, word [ecx]
lea esi, [edx + 1]
cmp ax, dx
je 0x57184a
mov edx, eax
cmp ax, si
jne 0x57185c
movzx edx, word [ecx + 2]
add ecx, 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x88], ecx
movzx eax, dx
mov dword [esp + 0x20], eax
movzx eax, word [ecx + 2]
lea ecx, [ecx + eax*2]
movzx eax, word [ecx]
cmp eax, 0x78
je 0x571863
mov dword [esp + 0x1c], eax
cmp eax, 0x79
jne 0x5718da
sub ecx, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov eax, ecx
sar eax, 1
mov eax, dword [esi + eax*4]
test eax, eax
je 0x5718da
mov dword [esp + 0x40], eax
lea eax, [ecx + 2]
sar eax, 1
mov eax, dword [esi + eax*4]
mov dword [esp + 0x78], eax
lea eax, [ecx + 4]
sar eax, 1
mov eax, dword [esi + eax*4]
mov dword [esp + 0x38], eax
lea eax, [ecx + 6]
mov ecx, dword [esp + 0x38]
sar eax, 1
mov eax, dword [esi + eax*4]
mov dword [esp + 0x70], eax
cmp ecx, 0x27
jne 0x5718c7
mov dword [esp + 0x1c], 0x7a
jmp 0x5718da
mov eax, dword [esp + 0x1c]
cmp ecx, 0x28
mov esi, 0x7b
cmove eax, esi
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x7c], 0x8a
mov dword [esp + 0x74], 0x8d
mov dword [esp + 0x60], 0x82
movzx eax, word [ecx + 2]
lea esi, [ecx + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x64], 0x83
mov dword [esp + 0x30], 0x84
lea eax, [ecx + eax*2]
mov dword [esp + 0x68], 0x85
movzx ecx, word [eax]
mov dword [esp + 0x44], eax
xor eax, eax
cmp ecx, 0x78
mov dword [esp + 0x50], 0x8b
mov dword [esp + 0x5c], 0x92
sete al
mov dword [esp + 0x54], 0x95
mov dword [esp + 0x28], eax
mov eax, 0x88
mov dword [esp + 0x58], 0xa2
mov dword [esp + 0x3c], 0x8f
cmp dx, word [esp + 0x7c]
je 0x57196d
cmp dx, word [esp + 0x3c]
jne 0x5719bc
movzx eax, word [esi]
cmp ax, word [esp + 0x5c]
jb 0x57197e
cmp ax, word [esp + 0x54]
jbe 0x57198d
mov dword [esp + 0x28], 1
cmp ax, word [esp + 0x58]
jne 0x571995
mov dword [esp + 0x28], 0
mov eax, 0x8a
cmp dx, ax
jne 0x5719b7
cmp ecx, 0x7a
je 0x5719ad
cmp ecx, 0x7b
jne 0x571a67
mov dword [esp + 0x20], 0x8f
jmp 0x5719f2
mov eax, 0x88
cmp dx, ax
je 0x571a38
cmp dx, word [esp + 0x74]
je 0x571a38
cmp dx, word [esp + 0x60]
je 0x5719f2
cmp dx, word [esp + 0x64]
je 0x5719f2
cmp dx, word [esp + 0x30]
je 0x5719f2
cmp dx, word [esp + 0x68]
je 0x5719f2
cmp dx, word [esp + 0x50]
je 0x5719f2
cmp dx, word [esp + 0x3c]
jne 0x571a67
mov edx, dword [esp + 0x88]
mov ecx, edx
sub ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
sar ecx, 1
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x18], eax
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x30]
cmp word [esp + 0x20], ax
jne 0x571a67
lea eax, [esp + 0x6c]
push eax
push 0
push 0
push edx
push ebx
call fcn.005854c0
mov dword [ebp + 0x20], eax
add esp, 0x14
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
jmp 0x571a67
movzx ecx, word [esi]
mov eax, dword [ebx + 0x14]
lea edx, [ecx + ecx]
cmp byte [ecx + eax], 0
mov dword [esp + 0x48], edx
jne 0x571a53
mov eax, dword [ebx + 0x20]
lea eax, [eax + ecx*4]
jmp 0x571a59
mov eax, dword [ebx + 0x24]
lea eax, [eax + edx*4]
add esi, 2
mov dword [esp + 0x18], eax
mov dword [ebp + 0x24], eax
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x1c]
xor ecx, ecx
cmp dx, 0x7a
je 0x571a85
cmp dx, 0x7b
jne 0x571a8a
mov eax, 0x97
cmp word [esp + 0x2c], ax
je 0x571a8a
mov ecx, 1
mov ebp, 0x96
lea eax, [ecx + 1]
cmp word [esp + 0x2c], bp
mov ebp, dword [esp + 0x14]
cmovne eax, ecx
test eax, eax
je 0x571ab0
push eax
push ebx
call fcn.0056d330
mov edx, dword [esp + 0x24]
add esp, 8
xor eax, eax
cmp dx, 0x7a
je 0x571aca
cmp dx, 0x7b
jne 0x571af1
mov eax, 0x97
cmp word [esp + 0x2c], ax
je 0x571b3e
cmp dword [edi], 0
jne 0x571aec
push 0
push 0x8b
push 0
push 0x40
push 1
push edi
call fcn.00581ba0
add esp, 0x18
test eax, eax
je 0x571aec
mov byte [eax], 0xc7
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov edx, 0x96
cmp cx, dx
jne 0x571b30
cmp dword [edi], 0
jne 0x571cc5
shl eax, 2
push eax
push 0x8b
push 0
push 2
push 1
push edi
call fcn.00581ba0
add esp, 0x18
test eax, eax
je 0x571cc5
mov byte [eax], 0x89
jmp 0x571cc5
mov eax, 0x97
cmp cx, ax
jne 0x571cc5
push 0
push 0x8b
push 0
push 2
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
cmp word [esp + 0x1c], 0x7b
je 0x571b80
push 1
push ebx
call fcn.00585360
push 0
push 0x40
push 0
push 2
push 0
push edi
call fcn.0058bf60
add esp, 0x20
mov dword [esp + 0x4c], eax
jmp 0x571cc5
mov eax, dword [esp + 0x20]
cmp ax, word [esp + 0x30]
je 0x571be6
cmp ax, word [esp + 0x50]
jae 0x571be6
push 0
push 0x40
push 0
push 2
push 1
push edi
call fcn.0058bf60
push 4
push 0x8b
push 0
push 2
push 0x20
push edi
mov esi, eax
call fcn.0058d570
push edi
call fcn.0058d340
add esp, 0x34
mov ecx, eax
test esi, esi
je 0x571cc1
test ecx, ecx
je 0x571cc1
mov eax, dword [esi + 8]
and eax, 0xfffffffd
mov dword [esi + 0xc], ecx
or eax, 1
mov dword [esi + 8], eax
jmp 0x571cc1
push 0
push 0x40
push 0
push 2
push 1
push edi
call fcn.0058bf60
push 4
push 0x8b
push 0
push 2
push 0x20
push edi
mov esi, eax
call fcn.0058d570
push 0x22
push edi
call fcn.0058d2b0
push edi
mov ebp, eax
call fcn.0058d340
add esp, 0x3c
mov ecx, eax
test esi, esi
je 0x571c37
test ecx, ecx
je 0x571c37
mov eax, dword [esi + 8]
and eax, 0xfffffffd
mov dword [esi + 0xc], ecx
or eax, 1
mov dword [esi + 8], eax
mov eax, dword [esp + 0x30]
cmp word [esp + 0x20], ax
jne 0x571c76
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x20], 0
jl 0x571c76
push dword [esp + 0x18]
push 0x8d
push 0
push 1
push 0x20
push edi
call fcn.0058d570
mov eax, 0xfffffffe
add esp, 0x18
sub eax, dword [esi + 0x20]
mov ecx, 0x81
shl eax, 2
jmp 0x571c7f
mov eax, dword [esp + 0x18]
mov ecx, 0x8d
push eax
push ecx
push 0
push 2
push 0
push edi
call fcn.0058bf60
push edi
mov esi, eax
call fcn.0058d340
add esp, 0x1c
mov dword [esp + 0x4c], esi
mov ecx, eax
test ebp, ebp
je 0x571cbd
mov dword [esp + 0x4c], esi
test ecx, ecx
je 0x571cbd
mov eax, dword [ebp + 8]
and eax, 0xfffffffd
mov dword [ebp + 0xc], ecx
or eax, 1
mov dword [esp + 0x4c], esi
mov dword [ebp + 8], eax
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x38], 0
je 0x571cfa
push dword [esp + 0x70]
push 0x40
push dword [esp + 0x48]
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
cmp dword [esp + 0x38], 0x29
jne 0x571cfa
push edi
call fcn.0058d340
add esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
cmp ax, 0x7b
jne 0x571d89
push edi
call fcn.0058d340
add esp, 4
mov dword [ebp + 0x18], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
cmp ax, word [esp + 0x30]
jne 0x571fdd
mov edx, dword [esp + 0x34]
xor esi, esi
test edx, edx
je 0x571d50
push dword [ebx + 0x44]
push 0x8d
push esi
push 3
push 0x20
push edi
call fcn.0058d570
mov edx, dword [esp + 0x4c]
add esp, 0x18
mov esi, 1
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x1c]
test eax, eax
jns 0x571ee2
cmp cx, 0x7b
jne 0x571dd0
add esi, 2
test edx, edx
jne 0x571dfd
push dword [esp + 0x18]
push 0x8d
push edx
push 3
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
jmp 0x571dfd
cmp ax, 0x7a
jne 0x571d14
push edi
call fcn.0058d340
mov ecx, dword [esp + 0x2c]
add esp, 4
mov edx, eax
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x571d18
mov eax, dword [esp + 0x20]
add eax, 0xffffff7a
cmp ax, 4
ja 0x571d18
cmp dword [esp + 0x38], 0
jne 0x571d18
mov dword [ebp + 0x14], edx
jmp 0x571d18
cmp eax, 0xffffffff
jne 0x571ded
push 0
push 0xb
push dword [esp + 0x20]
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
cmp word [esp + 0x1c], 0x7a
je 0x571dfc
cmp dword [esp + 0x28], 0
je 0x571dfd
inc esi
test esi, esi
je 0x571e0b
push esi
push ebx
call fcn.0056d330
add esp, 8
mov ecx, dword [esp + 0x34]
xor esi, esi
test ecx, ecx
je 0x571e34
push 0
push 3
push 0
push 0x8b
push 0x20
push edi
mov esi, 1
call fcn.0058d570
mov ecx, dword [esp + 0x4c]
add esp, 0x18
mov eax, dword [esp + 0x1c]
cmp ax, 0x7b
jne 0x571ec4
test ecx, ecx
je 0x571e5e
push dword [esp + 0x18]
push 0x8d
push 0
push 3
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
push 0
push 2
shl esi, 2
push esi
push 0x8b
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
cmp dword [ebp + 0x20], 0xffffffff
jne 0x571ea7
xor eax, eax
cmp dword [esp + 0x34], eax
setne al
lea eax, [eax*4 + 4]
push eax
push 0x40
push 0
push 0xb
push dword [esp + 0x28]
push 0x8d
push 0x60
push edi
call fcn.0058d7b0
add esp, 0x20
push 0
push 3
lea eax, [esi + 4]
push eax
push 0x8b
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
jmp 0x572306
cmp ax, 0x7a
je 0x571ed5
cmp dword [esp + 0x28], 0
je 0x572306
push 0
push 2
lea eax, [esi*4]
jmp 0x571eae
cmp cx, 0x79
jne 0x571eef
cmp dword [esp + 0x28], 0
je 0x571ef0
inc esi
inc eax
add esi, eax
push esi
push ebx
call fcn.0056d330
add esp, 8
cmp dword [esp + 0x34], 0
je 0x571f1a
push 0
push 3
push 0
push 0x8b
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
push dword [esp + 0x18]
push 0x8d
push 0
push 1
push 0x20
push edi
call fcn.0058d570
lea eax, [esi*4]
push eax
push 0x40
push 0
push 0xb
push 0
push 3
push 0x60
push edi
call fcn.0058d7b0
xor eax, eax
add esp, 0x38
cmp dword [esp + 0x34], eax
setne al
cmp word [esp + 0x1c], 0x79
mov dword [esp + 0x70], eax
jne 0x571f68
cmp dword [esp + 0x28], 0
je 0x571f8a
push 0
push 2
shl eax, 2
push eax
push 0x8b
push 0x20
push edi
call fcn.0058d570
mov esi, dword [esp + 0x88]
add esp, 0x18
inc esi
jmp 0x571f8e
mov esi, dword [esp + 0x70]
push 0
push 3
push dword [esp + 0x20]
push 0x8d
push 0x20
push edi
call fcn.0058d570
push 0
push 1
lea eax, [esi*4]
push eax
push 0x8b
push 0x20
push edi
call fcn.0058d570
lea eax, [esi + 1]
push eax
mov eax, dword [ebp + 0x20]
add eax, esi
push eax
push 0
push dword [esp + 0xc4]
push ebx
call fcn.005861c0
add esp, 0x44
jmp 0x572306
mov edx, 0x88
cmp ax, dx
je 0x572052
cmp ax, word [esp + 0x74]
je 0x572052
cmp ax, word [esp + 0x60]
je 0x5720da
cmp ax, word [esp + 0x64]
je 0x5720da
cmp ax, word [esp + 0x68]
je 0x5720da
cmp ax, word [esp + 0x50]
je 0x5720da
mov edx, dword [esp + 0x3c]
cmp ax, dx
je 0x5720da
test ecx, ecx
je 0x57212a
push 1
push ebx
call fcn.0056d330
push 0
push 2
push 0
push 0x8b
push 0x20
push edi
call fcn.0058d570
add esp, 0x20
jmp 0x572122
mov ecx, dword [esp + 0x48]
mov eax, dword [ebx + 0x14]
shr ecx, 1
cmp byte [ecx + eax], 0
je 0x5720da
push 2
push ebx
call fcn.0056d330
push dword [esp + 0x20]
push 0x8d
push 0
push 1
push 0x20
push edi
call fcn.0058d570
mov eax, dword [esp + 0x38]
add eax, 4
push eax
push 0x8d
push 0
push 3
push 0x20
push edi
call fcn.0058d570
push 0
push 2
push dword [esp + 0x58]
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x50
push 0
push 1
push 0
push 0x8b
push 0x20
push edi
call fcn.0058d570
push 0
push 3
push 4
push 0x8b
push 0x20
push edi
call fcn.0058d570
add esp, 0x30
jmp 0x572122
push dword [esp + 0x18]
push 0x8d
push 0
push 3
push 0x20
push edi
call fcn.0058d570
push 1
push ebx
call fcn.0056d330
push 0
push 2
push dword [esp + 0x40]
push 0x8d
push 0x20
push edi
call fcn.0058d570
push 0
push 3
push 0
push 0x8b
push 0x20
push edi
call fcn.0058d570
add esp, 0x50
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov ecx, 0x8a
cmp ax, cx
je 0x57213d
cmp ax, dx
jne 0x572306
movzx eax, word [esi]
mov ecx, 0x90
cmp ax, cx
jne 0x572185
mov ecx, dword [ebx + 0x24]
lea eax, [ecx + 4]
push eax
movzx eax, word [esi + 2]
push 0x8d
lea eax, [ecx + eax*8]
push eax
push 0x8d
push 0
push edi
call fcn.0058bf60
push eax
lea eax, [ebp + 0x20]
push eax
push edi
call fcn.0056d300
add esp, 0x24
add esi, 4
mov dword [esp + 0x10], esi
jmp 0x572306
mov ecx, 0x91
cmp ax, cx
jne 0x572283
movzx ecx, word [esi + 2]
imul ecx, dword [ebx + 0xb8]
mov eax, dword [ebx + 0xb0]
movzx ebp, word [esi + 4]
push 0
push 2
push 0
push 4
push 0x20
push edi
lea esi, [eax + ecx*2]
call fcn.0058d570
mov eax, dword [ebx + 0x24]
add eax, 4
push eax
push 0x8d
push 0
push 1
push 0x20
push edi
call fcn.0058d570
movzx ecx, word [esi]
mov eax, dword [ebx + 0x24]
push 0
push 1
lea eax, [eax + ecx*8]
push eax
push 0x8d
push 0
push 3
push 0x262
push edi
call fcn.0058d7b0
mov eax, dword [ebx + 0xb8]
dec ebp
add esp, 0x50
lea esi, [esi + eax*2]
test ebp, ebp
jle 0x57224d
movzx ecx, word [esi]
dec ebp
mov eax, dword [ebx + 0x24]
push 0
push 1
lea eax, [eax + ecx*8]
push eax
push 0x8d
push 0
push 2
push 0x62
push edi
call fcn.0058d7b0
push 0
push 2
push 0
push 3
push 0
push 3
push 0x266
push edi
call fcn.0058d7b0
mov eax, dword [ebx + 0xb8]
add esp, 0x40
lea esi, [esi + eax*2]
test ebp, ebp
jg 0x572206
push 0
push 4
push 0
push 2
push 0x20
push edi
call fcn.0058d570
push 0
push edi
call fcn.0058d2b0
mov ebp, dword [esp + 0x34]
push eax
lea eax, [ebp + 0x20]
push eax
push edi
call fcn.0056d300
mov eax, dword [esp + 0x3c]
add esp, 0x2c
add eax, 6
jmp 0x57230e
mov ecx, dword [esp + 0x54]
cmp ax, word [esp + 0x5c]
jb 0x572297
cmp ax, cx
jbe 0x57237d
mov edx, dword [esp + 0x58]
cmp ax, dx
je 0x572381
push 0x24
push edi
call fcn.0058bdd0
add esp, 8
cmp dword [edi], 0
jne 0x5729e4
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x14], 0
push 1
mov dword [eax + 0x18], 0
push eax
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
push esi
mov dword [eax + 0x10], esi
push ebx
mov dword [ebp + 0x20], eax
call fcn.0056eef0
add esp, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
push ebp
push ecx
push eax
push ebx
call fcn.00576fc0
add esp, 0x10
cmp dword [edi], 0
jne 0x5729e4
mov esi, dword [esp + 0x20]
cmp si, word [esp + 0x60]
je 0x572339
cmp si, word [esp + 0x64]
jne 0x572351
push dword [esp + 0x18]
push 0x8d
push 0
push 2
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
cmp si, word [esp + 0x30]
jne 0x572487
push dword [esp + 0x34]
push dword [esp + 0x2c]
push dword [esp + 0x20]
push dword [ebp + 0x20]
push dword [esp + 0x2c]
push ebx
call fcn.00588dd0
add esp, 0x18
jmp 0x57249c
mov edx, dword [esp + 0x58]
mov dword [ebp + 0x20], 0
movzx eax, word [esi]
cmp ax, cx
jne 0x57239c
add esi, 2
mov dword [esp + 0x10], esi
jmp 0x572306
mov ecx, 0x94
cmp ax, cx
je 0x57245b
cmp ax, dx
je 0x57245b
cmp ax, word [esp + 0x5c]
jne 0x572401
movzx esi, word [esi + 2]
mov edx, dword [ebx + 0xd8]
mov eax, esi
test edx, edx
je 0x57245b
mov ecx, 0xffff
cmp ax, cx
je 0x5723f5
mov edx, dword [edx + 0x14]
xor ecx, ecx
test edx, edx
jne 0x5723e6
test ax, ax
jmp 0x5723ee
mov eax, dword [ebx + 8]
cmp si, word [eax + edx*2 + 4]
sete cl
test ecx, ecx
je 0x57245b
mov eax, dword [esp + 0x10]
add eax, 4
jmp 0x57230a
mov eax, dword [ebx + 0xd8]
test eax, eax
je 0x57245b
mov ebp, dword [eax + 0x14]
test ebp, ebp
je 0x57245b
mov eax, dword [esp + 0x10]
movzx edx, word [esi + 4]
mov esi, dword [ebx + 0xb8]
movzx ecx, word [eax + 2]
mov eax, dword [ebx + 0xb0]
imul ecx, esi
lea ecx, [eax + ecx*2]
mov eax, dword [ebx + 8]
movzx eax, word [eax + ebp*2 + 4]
test edx, edx
je 0x57245b
nop dword [eax]
cmp word [ecx], ax
je 0x57244d
dec edx
lea ecx, [ecx + esi*2]
test edx, edx
jg 0x572440
test edx, edx
je 0x57245b
add dword [esp + 0x10], 6
jmp 0x572306
mov ebp, dword [esp + 0x44]
cmp word [ebp], 0x78
jne 0x57247e
lea eax, [ebp + 4]
mov dword [esp + 0x10], eax
movzx eax, word [ebp + 2]
lea ebp, [ebp + eax*2]
mov dword [esp + 0x44], ebp
jmp 0x572306
mov dword [esp + 0x10], ebp
jmp 0x572306
cmp si, word [esp + 0x68]
jne 0x57249c
push ebp
push dword [esp + 0x1c]
push ebx
call fcn.00588f80
add esp, 0xc
xor edx, edx
cmp dword [esp + 0x38], 0x28
jne 0x5724c1
push dword [esp + 0x40]
push 0x8d
push edx
push 3
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
mov edx, 1
cmp word [esp + 0x1c], 0x79
mov eax, 0x86
jne 0x5724d5
cmp word [esp + 0x2c], ax
je 0x5724d6
inc edx
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x5724f8
cmp dword [ebx + 0x48], 0
lea eax, [edx + 1]
cmove eax, edx
shr ecx, 1
mov edx, eax
mov eax, dword [ebx + 0x14]
cmp byte [ecx + eax], 0
jne 0x5724f8
add edx, 2
cmp dword [esp + 0x28], 0
je 0x572507
cmp si, word [esp + 0x30]
je 0x572507
inc edx
test edx, edx
je 0x572515
push edx
push ebx
call fcn.0056d330
add esp, 8
xor esi, esi
cmp dword [esp + 0x38], 0x28
jne 0x57253b
push 1
push 0x40
push esi
push 3
push esi
push 0x8b
push 0x62
push edi
call fcn.0058d7b0
add esp, 0x20
mov esi, 1
mov ecx, dword [esp + 0x1c]
cmp cx, 0x79
jne 0x572551
mov eax, 0x86
cmp word [esp + 0x2c], ax
je 0x57257e
push 0
cmp cx, 0x79
mov edx, 0x40
mov eax, 2
cmove eax, edx
push eax
lea eax, [esi*4]
push eax
push 0x8b
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
inc esi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x572597
push dword [esp + 0x18]
push eax
push esi
push ebx
call fcn.00588c50
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x44]
mov edx, 1
cmp word [eax], 0x78
jne 0x5725b9
movzx ecx, word [eax + 2]
inc edx
cmp word [eax + ecx*2], 0x78
lea eax, [eax + ecx*2]
je 0x5725a6
mov dword [esp + 0x44], eax
cmp dword [esp + 0x28], 0
je 0x572608
mov eax, dword [esp + 0x30]
cmp word [esp + 0x20], ax
je 0x5725ec
shl esi, 2
cmp edx, 3
jg 0x5726d9
push 0
push 0x40
push esi
push 0x8b
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
mov esi, dword [esp + 0x14]
cmp word [esp + 0x1c], 0x7a
je 0x572604
push edi
call fcn.0058d340
add esp, 4
mov dword [esi + 0x14], eax
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
test edx, edx
je 0x57263b
mov eax, dword [ebx + 0x14]
mov ecx, edx
shr ecx, 1
cmp byte [ecx + eax], 0
je 0x57263b
mov eax, dword [ebx + 0x24]
push 0
push 2
lea eax, [eax + edx*4]
add eax, 4
push eax
push 0x8d
push 0x20
push edi
call fcn.0058d570
add esp, 0x18
cmp word [esp + 0x1c], 0x7a
jne 0x5727c6
cmp dword [esp + 0x38], 0
je 0x5726f4
cmp dword [esp + 0x28], 0
je 0x572665
push edi
call fcn.0058d340
add esp, 4
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x40]
push 1
push 0x40
push eax
push 0x8d
push eax
push 0x8d
push 0x262
push edi
call fcn.0058d7b0
push 1
push edi
call fcn.0058d2b0
mov ebp, dword [esp + 0x4c]
add esp, 0x28
test eax, eax
je 0x5726aa
test ebp, ebp
je 0x5726aa
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], ebp
or ecx, 1
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x30]
cmp word [esp + 0x20], ax
je 0x5727b4
push 1
push ebx
call fcn.00585360
add esp, 8
push edi
call fcn.0058d340
mov esi, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x5727ce
push esi
push 0x8b
push edi
call fcn.0058e0c0
mov esi, dword [esp + 0x20]
add esp, 0xc
mov dword [esi + 0x20], eax
jmp 0x5725f0
mov esi, dword [esp + 0x20]
lea eax, [esi - 0x86]
cmp ax, 4
ja 0x572720
push 0x22
push edi
call fcn.0058d2b0
mov ebp, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x5727b4
jmp 0x57279d
cmp dword [esp + 0x28], 0
je 0x572733
push edi
call fcn.0058d340
add esp, 4
mov dword [ebp + 0x14], eax
push 0
push 2
cmp si, word [esp + 0x38]
je 0x572786
push dword [esp + 0x20]
push 0x8d
push 1
push edi
call fcn.0058bf60
add esp, 0x18
test eax, eax
je 0x57276d
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x57276d
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], ebp
or ecx, 1
mov dword [eax + 8], ecx
mov eax, 0x96
cmp word [esp + 0x2c], ax
je 0x5727b0
push 1
push ebx
call fcn.00585360
add esp, 8
jmp 0x5727b0
push 0
push 3
push 1
push edi
call fcn.0058bf60
add esp, 0x18
test eax, eax
je 0x5727b0
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x5727b0
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], ebp
or ecx, 1
mov dword [eax + 8], ecx
mov ebp, dword [esp + 0x24]
push edi
call fcn.0058d340
mov esi, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x5727ce
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
cmp eax, 0x29
jne 0x572820
push ebx
call fcn.0057d110
mov eax, dword [esp + 0x44]
push 1
push 0x40
push eax
push 0x8d
push eax
push 0x8d
push 0x262
push edi
call fcn.0058d7b0
push 1
push edi
call fcn.0058d2b0
add esp, 0x2c
test eax, eax
je 0x572858
test ebp, ebp
je 0x572858
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], ebp
or ecx, 1
mov dword [eax + 8], ecx
jmp 0x572858
cmp eax, 0x27
jne 0x572858
push dword [esp + 0x40]
push 0x8d
push 0
push 3
push 0x20
push edi
call fcn.0058d570
push 1
push ebx
call fcn.0056d330
push 0
push 3
push 0
push 0x8b
push 0x20
push edi
call fcn.0058d570
add esp, 0x38
mov eax, dword [esp + 0x2c]
mov edx, 0x96
cmp ax, dx
jne 0x5728d3
push edi
call fcn.0058d340
add esp, 4
mov dword [esi + 0x1c], eax
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov esi, 0x97
lea edx, [esi - 1]
cmp cx, 0x79
je 0x572891
cmp ax, si
jne 0x572896
cmp ax, dx
jne 0x57289f
push ebx
call fcn.0057d110
add esp, 4
cmp bp, word [esp + 0x30]
jne 0x5728bd
mov edx, dword [esp + 0x14]
xor ecx, ecx
cmp dword [esp + 0x34], ecx
setne cl
mov eax, dword [edx + 0x20]
add eax, eax
or ecx, eax
mov dword [edx + 0x20], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x44]
add eax, 2
pop edi
pop esi
pop ebp
lea eax, [ecx + eax*2]
pop ebx
add esp, 0x70
ret
mov esi, 0x97
cmp ax, si
jne 0x5729d7
mov esi, dword [esp + 0x8c]
push 0x22
push edi
mov esi, dword [esi + 0x14]
call fcn.0058d2b0
add esp, 8
test eax, eax
je 0x57290d
test esi, esi
je 0x57290d
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
mov ebp, dword [esp + 0x4c]
test ebp, ebp
je 0x572872
push edi
call fcn.0058d340
add esp, 4
test eax, eax
je 0x572935
mov ecx, dword [ebp + 8]
and ecx, 0xfffffffd
mov dword [ebp + 0xc], eax
or ecx, 1
mov dword [ebp + 8], ecx
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
cmp bp, ax
jne 0x57299c
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x20], 0
jl 0x57299c
push dword [esp + 0x18]
push 0x8d
push 0
push 0xb
push 0x20
push edi
call fcn.0058d570
push 0x23
push edi
call fcn.0058d2b0
push eax
lea eax, [ebx + 0xfc]
push eax
push edi
call fcn.0056d300
mov eax, dword [esi + 0x20]
lea eax, [eax*4 - 4]
push eax
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push edi
call fcn.0058d7b0
add esp, 0x4c
jmp 0x572876
mov ecx, dword [esp + 0x1c]
cmp cx, 0x7b
jne 0x57287a
cmp bp, ax
je 0x5728a6
push 1
push ebx
call fcn.00585360
mov eax, dword [esp + 0x80]
add esp, 8
mov ecx, dword [esp + 0x44]
add eax, 2
pop edi
pop esi
pop ebp
lea eax, [ecx + eax*2]
pop ebx
add esp, 0x70
ret
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
jmp 0x572886
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x70
ret