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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebp + 0x254]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x10], ebp
je 0x5b7b50
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebp + 0x254], edi
mov eax, dword [ebp + 0x134]
cmp eax, edi
mov dword [ebp + 0x26c], 1
je 0x5b8a9f
cmp dword [eax + 0x58], edi
je 0x5b8a9f
mov eax, dword [ebp + 0x270]
cmp eax, edi
je 0x5b8a9f
cmp dword [eax + 0xa0], edi
je 0x5b8a9f
cmp dword [ebp + 0x1c0], edi
jle 0x5b7df7
cmp dword [ebp + 0x1c4], edi
jle 0x5b7df7
mov esi, dword [ebp + 0xd4]
mov ecx, dword [ebp + 0xdc]
mov edx, dword [ebp + 0xe0]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xd8]
push 0x70
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
call fcn.005d2776
add esp, 4
cmp eax, edi
je 0x5b7c02
call fcn.00580c60
jmp 0x5b7c04
xor eax, eax
mov ecx, dword [ebp + 0x134]
mov dword [ebp + 0x254], eax
mov ecx, dword [ecx + 0x58]
mov edx, dword [ecx + 0x24]
cmp edx, edi
mov dword [esp + 0x34], edx
je 0x5b7d85
mov ecx, dword [ecx + 0xb4]
push esi
push 4
push ecx
mov ecx, dword [ebp + 0x1c4]
push 1
push 1
push eax
mov eax, dword [ebp + 0xd0]
push edx
mov edx, dword [ebp + 0x1c0]
call fcn.005a6120
test eax, eax
jne 0x5b7d85
mov edx, dword [ebp + 0x1c4]
mov eax, dword [ebp + 0x1c0]
push edx
push eax
mov eax, dword [ebp + 0x254]
call fcn.00580d80
mov esi, dword [ebp + 0x254]
xor eax, eax
call fcn.00580e90
push 1
push 0
xor edi, edi
lea ebx, [esp + 0x1c]
mov esi, ebp
call fcn.0059d540
test eax, eax
je 0x5b7d34
mov esi, dword [esp + 0x14]
test esi, esi
je 0x5b7d4d
mov ecx, dword [ebp + 0x134]
mov edx, dword [ecx + 0x58]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x5b7d38
call fcn.0057d6f0
mov esi, eax
test esi, esi
je 0x5b7d34
mov eax, dword [ebp + 0x1c0]
mov ecx, dword [ebp + 0x1c4]
mov edx, dword [esi]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x74], ecx
mov ecx, esi
xor ebx, ebx
call eax
mov edx, dword [esi]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x70]
sub esp, 0x10
mov dword [esp + 0x50], eax
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x254]
push ebx
lea edx, [esp + 0x4c]
push edx
push eax
mov cl, 1
lea edx, [ebp + 0xd0]
mov eax, esi
call fcn.005805a0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x5b7d4d
push esi
call fcn.005d28c2
add esp, 4
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x88]
mov edx, dword [ebp + 0x134]
mov eax, dword [edx + 0x58]
mov ebx, dword [ebp + 0x254]
push ecx
mov ecx, dword [eax + 0xb4]
mov eax, dword [ebp + 0xd0]
push 4
push ecx
mov ecx, dword [esp + 0x40]
push 1
push 1
add ecx, 0x1c
call fcn.005a6160
xor edi, edi
mov edx, dword [ebp + 0x254]
push edx
mov ecx, ebp
call fcn.005b0be0
mov ecx, dword [ebp + 0x4ec]
cmp ecx, edi
je 0x5b7dc7
cmp dword [ebp + 0x4f0], edi
je 0x5b7dc7
mov eax, dword [ecx]
mov edx, dword [ebp + 0x254]
mov eax, dword [eax + 0x20]
push edx
call eax
mov ecx, dword [ebp + 0x4f0]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x254]
mov edx, dword [edx + 0x20]
push eax
call edx
mov eax, dword [ebp + 0x270]
cmp eax, edi
je 0x5b7df7
mov eax, dword [eax + 0x340]
cmp eax, edi
je 0x5b7df7
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x5b7de0
sub eax, edx
sar eax, 1
je 0x5b7df7
push ebp
call fcn.00592090
mov ebp, dword [ebp + 0x134]
cmp ebp, edi
je 0x5b7e0e
mov esi, ebp
call fcn.0057b9f0
mov dword [esp + 0x34], eax
jmp 0x5b7e12
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x10]
mov ebp, dword [edi + 0x270]
xor eax, eax
add ebp, 0x7c
xor esi, esi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov eax, ebp
mov dword [esp + 0x78], esi
mov dword [esp + 0x14], esi
call fcn.0057a810
test eax, eax
jle 0x5b893f
jmp 0x5b7e54
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5b7e67
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x5b7e6c
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + esi*4]
cmp dword [eax + 0x2c], 0
je 0x5b893f
test ecx, ecx
je 0x5b7e8c
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x5b7e91
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov esi, dword [ecx + esi*4]
test esi, esi
je 0x5b8921
movzx eax, byte [esi]
and eax, 1
xor edx, edx
test eax, eax
sete dl
mov eax, edx
test eax, eax
je 0x5b8921
mov edi, dword [esp + 0x14]
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov ebx, dword [eax]
push ecx
call fcn.00592660
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x270]
mov ecx, edi
cmp ecx, dword [eax + 0x8c]
mov ebx, edi
jne 0x5b7f08
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x1000
jne 0x5b7f08
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x218]
mov dword [esp + 0x28], eax
jmp 0x5b7f16
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x214]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x270]
cmp dword [ecx + 0x90], 0
je 0x5b8056
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov edx, dword [eax]
test dword [edx], 0x200000
je 0x5b7fce
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax]
push ecx
call fcn.0057a7e0
fstp dword [esp + 0x34]
add esp, 4
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 8]
add eax, 8
mov dword [esp + 0x18], edx
call fcn.0057a830
fld dword [esp + 0x30]
fmul qword [0x6406a8]
mov ecx, eax
mov ecx, dword [ecx]
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x1c], eax
add ecx, 0xc
fldcw word [esp + 0x1c]
fistp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
shl eax, 0x18
or eax, dword [esp + 0x28]
fldcw word [esp + 0x30]
push eax
mov eax, dword [esp + 0x14]
push 0
push ecx
mov ecx, dword [eax + 0x254]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [eax + 0x1fc]
push eax
call fcn.00592c20
jmp 0x5b8056
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 8]
add eax, 8
mov edi, ebx
mov dword [esp + 0x18], edx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x10]
add eax, 0xc
mov dword [esp + 0x1c], ecx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
add eax, 0xc
mov dword [esp + 0x30], ecx
call fcn.0057a830
mov dword [esp + 0x20], eax
call fcn.0057a830
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [ecx]
mov ecx, dword [edx + 0x10]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx + 0x254]
push eax
call fcn.005aec90
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 0x10
je 0x5b8141
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esp + 0x78], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x80], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x84], eax
call fcn.0057a830
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
call fcn.00592610
test eax, eax
mov dword [esp + 0x18], eax
je 0x5b83ae
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x134]
call fcn.0057b9a0
mov esi, ebp
mov dword [esp + 0x20], eax
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x28], edx
call fcn.0057a830
mov dword [esp + 0x1c], eax
call fcn.0057a830
mov dword [esp + 0x2c], eax
call fcn.0057a830
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + 0x218]
push edx
lea edx, [ecx + 0x214]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
mov edx, dword [edx]
push edx
mov edx, dword [esp + 0x40]
mov edx, dword [edx]
add eax, 0x30
push eax
lea eax, [esp + 0x90]
push eax
mov eax, dword [ecx + 0x254]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
add edx, 0x34
call fcn.00592e50
jmp 0x5b83ae
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 4
jne 0x5b8214
mov edi, ebx
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x800
jne 0x5b8214
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x1000
jne 0x5b8214
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x4000
jne 0x5b8214
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 8
je 0x5b8279
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x18], ecx
call fcn.0057a830
mov dword [esp + 0x20], eax
call fcn.0057a830
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov edx, dword [edx]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x254]
push esi
push ecx
mov ecx, dword [edx]
add eax, 0x1c
lea edx, [esp + 0x84]
call fcn.005932f0
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x78]
add eax, 0x3c
mov dword [eax], edx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x80]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
jmp 0x5b8279
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x1c], edx
call fcn.0057a830
mov dword [esp + 0x20], eax
call fcn.0057a830
mov dword [esp + 0x18], eax
call fcn.0057a830
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
add eax, 0x1c
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x254]
push ecx
mov ecx, dword [edx + 0x34]
push eax
call fcn.00592930
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x270]
cmp dword [edx + 0x30], 2
jne 0x5b83ae
mov eax, dword [eax + 0x134]
mov ecx, dword [eax + 0x58]
mov eax, dword [ecx + 0x3c]
test eax, eax
mov dword [esp + 0x20], eax
je 0x5b83ae
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov edx, dword [eax]
cmp dword [edx + 0x38], 0
je 0x5b83ae
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x44]
add eax, 0x3c
sub ecx, dword [eax]
je 0x5b83ae
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x48]
add eax, 0x3c
sub edx, dword [eax + 4]
je 0x5b83ae
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov edi, dword [esp + 0x20]
call fcn.005a00f0
test eax, eax
mov dword [esp + 0x2c], eax
je 0x5b83ae
mov esi, dword [esp + 0x2c]
mov edx, dword [esi]
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [esi]
mov dword [esp + 0xc0], eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, ebx
mov esi, ebp
mov dword [esp + 0xc4], eax
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x40]
add eax, 0x3c
mov dword [esp + 0x20], ecx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x44]
sub ecx, dword [eax + 0x3c]
add eax, 0x3c
mov dword [esp + 0x18], ecx
call fcn.0057a830
mov dword [esp + 0x1c], eax
call fcn.0057a830
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push 1
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [edx]
mov edx, dword [ecx + 0x40]
mov ecx, dword [eax + 0x3c]
push edx
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x254]
push ecx
push eax
mov eax, dword [esp + 0x48]
xor cl, cl
xor edx, edx
call fcn.005805e0
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000
jne 0x5b84e6
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x40000
jne 0x5b84e6
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x1000000
jne 0x5b84e6
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000000
jne 0x5b84e6
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x400000
jne 0x5b8420
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x100
je 0x5b8921
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x134]
test eax, eax
je 0x5b8921
mov eax, dword [eax + 0x58]
test eax, eax
je 0x5b8921
mov eax, dword [eax + 0x40]
test eax, eax
mov dword [esp + 0x18], eax
je 0x5b8921
mov edi, ebx
mov esi, ebp
call fcn.0057a830
fld dword [0x640944]
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [eax + 0x50]
add eax, 0x4c
push ecx
mov dword [esp + 0x6c], edx
fstp dword [esp]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], edx
mov edx, dword [ecx + 0x254]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], eax
push edx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x2c], 0
call fcn.0058d8c0
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [esp + 0x10]
add eax, 0x4c
mov dword [ecx + 0x36c], edx
mov edx, dword [eax + 4]
mov dword [ecx + 0x370], edx
mov edx, dword [eax + 8]
mov dword [ecx + 0x374], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x378], eax
mov dword [ecx + 0x39c], 1
jmp 0x5b8921
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x1000000
jne 0x5b8542
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000000
jne 0x5b8542
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000
je 0x5b8522
mov eax, dword [esp + 0x10]
add eax, 0x2ec
jmp 0x5b854b
mov edi, ebx
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x40000
je 0x5b8716
mov eax, dword [esp + 0x10]
add eax, 0x32c
jmp 0x5b854b
mov eax, dword [esp + 0x10]
add eax, 0x3ec
test eax, eax
mov dword [esp + 0x28], eax
je 0x5b8716
mov edx, dword [eax + 0x10]
test edx, edx
mov dword [esp + 0x1c], edx
je 0x5b8716
mov esi, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0xb0], esi
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb4], edx
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 8
je 0x5b8678
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov ecx, dword [esp + 0x90]
add eax, 1
mov dword [esp + 0x58], eax
add eax, ecx
mov dword [esp + 0x60], eax
call fcn.0057a830
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x20], eax
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx]
jge 0x5b8630
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x5c], eax
jmp 0x5b863e
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x5c]
add eax, ecx
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x64], eax
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add eax, 0x4c
mov dword [eax], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edi, dword [esp + 0x14]
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov ebx, dword [eax + 0x58]
sub ebx, dword [eax + 0x50]
add eax, 0x4c
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x54]
sub ecx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [esp + 0x18], ecx
call fcn.0057a830
mov dword [esp + 0x20], eax
call fcn.0057a830
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov esi, dword [esp + 0x1c]
push 0
push 0
lea edx, [esp + 0x90]
push edx
mov edx, dword [eax]
mov eax, dword [edx + 0x4c]
mov edx, dword [esp + 0x1c]
push ebx
push eax
mov eax, dword [edx + 0x254]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [ecx + 0x50]
mov bl, 1
call fcn.00580620
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [esp + 0x28]
add eax, 0x4c
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x30], 1
mov ebx, edi
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000000
je 0x5b8921
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x43c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x5b8921
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 8
je 0x5b8821
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov ecx, dword [esp + 0x40]
add eax, 1
mov dword [esp + 0x48], eax
add eax, ecx
mov dword [esp + 0x50], eax
call fcn.0057a830
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x20], eax
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx]
jge 0x5b87dc
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x4c], eax
jmp 0x5b87ea
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
add eax, ecx
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x54], eax
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add eax, 0x4c
mov dword [eax], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edi, dword [esp + 0x14]
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0xb4]
sub edx, dword [esp + 0xac]
mov esi, dword [eax + 0x50]
mov edi, dword [eax + 0x54]
mov ecx, dword [esp + 0xb0]
sub ecx, dword [esp + 0xa8]
mov ebx, dword [eax + 0x4c]
add eax, 0x4c
mov eax, dword [eax + 0xc]
lea esi, [esi + edx - 2]
lea ebx, [ebx + ecx + 2]
lea ecx, [edi + ecx + 2]
mov edi, dword [esp + 0x14]
lea edx, [eax + edx - 2]
mov dword [esp + 0x9c], esi
mov esi, ebp
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0x18]
add eax, 0x4c
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xa4]
mov dword [eax + 8], edx
push 0
push 0
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
mov edx, dword [ecx + 0x254]
push eax
push ebx
push edx
mov edx, dword [esp + 0x58]
mov bl, 1
mov eax, edi
call fcn.00580620
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0x40]
lea ecx, [edi + eax]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x42c], esi
add edx, esi
mov dword [eax + 0x430], edi
mov dword [eax + 0x434], edx
mov dword [eax + 0x438], ecx
mov dword [eax + 0x45c], 1
mov esi, dword [esp + 0x14]
add esi, 1
mov eax, ebp
mov dword [esp + 0x14], esi
call fcn.0057a810
cmp esi, eax
mov edi, dword [esp + 0x10]
jl 0x5b7e50
xor eax, eax
cmp dword [edi + 0x2dc], eax
je 0x5b89b1
mov ecx, dword [edi + 0x270]
mov edx, dword [ecx + 0x1c]
mov esi, dword [edi + edx*4 + 0x2bc]
cmp esi, eax
je 0x5b89b1
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
push eax
push eax
mov dword [esp + 0x78], ecx
mov ecx, dword [edi + 0x2b8]
sub ecx, dword [edi + 0x2b0]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [edi + 0x2ac]
push ecx
mov ecx, dword [edi + 0x254]
mov dword [esp + 0x84], edx
mov edx, dword [edi + 0x2b4]
sub edx, dword [edi + 0x2ac]
push eax
mov eax, dword [edi + 0x2b0]
push ecx
mov bl, 1
call fcn.00580620
call fcn.004062c0
mov edx, dword [0x678ec4]
cmp dword [edx + 0xd94], 0
mov esi, 1
mov dword [0x678ec0], esi
je 0x5b8a07
mov eax, dword [edi + 0x3bc]
test eax, eax
je 0x5b8a07
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov edx, 3
add eax, edx
add ecx, edx
mov dword [edi + 0x3ac], edx
mov dword [edi + 0x3b0], edx
mov dword [edi + 0x3b4], eax
mov dword [edi + 0x3b8], ecx
mov dword [edi + 0x3dc], esi
mov eax, dword [edi + 0x270]
mov ecx, dword [eax + 0x3e8]
cmp dword [ecx - 0xc], 0
je 0x5b8a6c
cmp dword [eax + 0x3f8], 0
je 0x5b8a6c
lea edx, [edi + 0x494]
test edx, edx
je 0x5b8a6c
mov ebx, dword [eax + 0x3e8]
xor ecx, ecx
cmp dword [ebx - 0xc], ecx
je 0x5b8a43
cmp dword [eax + 0x3ec], ecx
je 0x5b8a43
mov ecx, esi
movzx ebx, byte [eax + 0x3f4]
shl ebx, 0x18
or ebx, dword [edx + 0x18]
push ebx
push ecx
lea ecx, [eax + 0x3fc]
push ecx
mov ecx, dword [edi + 0x254]
push ecx
mov ecx, dword [eax + 0x3e8]
push edi
call fcn.00592c20
mov eax, dword [edi + 0x254]
test eax, eax
je 0x5b8a8c
cmp dword [edi + 0x268], 0
jne 0x5b8a8c
mov edx, dword [0x680790]
push edx
push eax
call fcn.00580200
mov ecx, edi
call fcn.00591ab0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4