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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test dword [edi + 4], 0x100000
je 0x6404fc
test dword [edi + 0x20], 0x30
mov dword [esp + 0x54], 1
je 0x640504
mov dword [esp + 0x54], 0
mov eax, dword [ebp + 0xc]
add eax, 0x14
mov dword [esp + 0x20], eax
mov edi, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov ebx, dword [edx + 8]
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x10], ebx
je 0x64052b
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
cmp eax, 3
jne 0x640c12
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [eax + 8]
jl 0x6420d3
mov edx, dword [ebx]
mov eax, dword [edx + 0x60]
mov ecx, ebx
call eax
mov edx, dword [ebx]
test eax, eax
mov eax, dword [edx + 0x10]
mov ecx, ebx
je 0x6409f7
call eax
test eax, eax
mov eax, dword [edi + 0x1c]
je 0x64075f
cmp eax, esi
je 0x640589
cmp eax, 2
je 0x640589
cmp eax, 3
je 0x640589
cmp eax, 5
jne 0x641bad
mov edx, dword [ebx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x190]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x120], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
mov dword [esp + 0x124], edx
mov edx, dword [ebx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0xcc]
push eax
mov ecx, ebx
call edx
mov eax, dword [eax]
mov edx, dword [esi]
mov edx, dword [edx + 0xa4]
push eax
lea ecx, [esp + 0x124]
push ecx
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x6405fe
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xcc], 0
mov esi, dword [esp + 0x194]
test esi, esi
je 0x640644
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0xf4]
call fcn.006e2c00
mov eax, dword [0x100ef808]
push esi
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x10c], 0
je 0x640644
mov esi, dword [esp + 0x108]
call fcn.006c54d0
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0xb0]
push eax
call edx
push 4
lea eax, [esp + 0x70]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x6c]
push eax
call edx
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
test esi, esi
mov dword [esp + 0x18], esi
je 0x64068d
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x6c]
push eax
call dword [0x100ef7e8]
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
push ecx
lea ebx, [esp + 0x6c]
call fcn.0063b590
test eax, eax
jne 0x6406e2
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov ebx, dword [esp + 0x68]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
mov ecx, ebx
mov dword [esp + 0x14], eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x641bd5
mov eax, dword [esp + 0x68]
xor ebx, ebx
cmp eax, ebx
je 0x6406f8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x68], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x640720
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + 0xb0]
cmp eax, ebx
je 0x64073a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xb0], ebx
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x64074e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x640510
cmp eax, esi
je 0x640776
cmp eax, 2
je 0x640776
cmp eax, 3
je 0x640776
cmp eax, 5
jne 0x641ccc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x70], 1
jne 0x6408f5
push 4
lea ecx, [esp + 0x64]
push ecx
call dword [0x100ef7e8]
lea ebx, [esp + 0x60]
call fcn.00635640
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x1a8]
push eax
call edx
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
mov dword [esp + 0x128], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x12c], edx
mov edx, dword [esp + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0xa4]
push edx
lea edx, [esp + 0x12c]
push edx
lea edx, [esp + 0x94]
push edx
call eax
lea eax, [esp + 0x1a8]
call fcn.006b5660
push 4
lea ecx, [esp + 0x80]
push ecx
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x7c]
push eax
call edx
mov esi, dword [esi + 0x74]
test esi, esi
mov dword [esp + 0x18], esi
je 0x640823
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x9c]
mov ecx, esi
call eax
push 4
lea ecx, [esp + 0x78]
push ecx
call dword [0x100ef7e8]
mov edx, dword [edi + 8]
mov eax, dword [ebp + 8]
push edx
lea ebx, [esp + 0x78]
call fcn.0063b590
test eax, eax
jne 0x640878
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov ebx, dword [esp + 0x74]
call edx
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
mov ecx, ebx
mov dword [esp + 0x14], eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x641cf8
mov eax, dword [esp + 0x74]
xor ebx, ebx
cmp eax, ebx
je 0x64088e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x74], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x7c]
cmp eax, ebx
je 0x6408b6
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x6408d0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x8c], ebx
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x6408e4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x640510
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0x24]
mov ecx, dword [0x100ef48c]
push eax
mov eax, dword [edi + 0x20]
push edx
mov edx, dword [edi + 0x18]
push eax
mov eax, dword [edi + 0x14]
push esi
push edx
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [edi + 0xc]
push edx
mov edx, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push edx
mov edx, dword [edi]
add ecx, 0x190
push eax
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x24]
call edx
call eax
mov esi, eax
test esi, esi
mov dword [esp + 0x38], esi
jne 0x641dfc
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
test esi, esi
mov dword [esp + 0x18], esi
je 0x640956
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x98]
push eax
call dword [0x100ef7e8]
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
push ecx
lea ebx, [esp + 0x98]
call fcn.0063b590
test eax, eax
jne 0x6409b4
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov ebx, dword [esp + 0x94]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
mov ecx, ebx
mov dword [esp + 0x14], eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x641dd4
mov eax, dword [esp + 0x94]
test eax, eax
je 0x6409d2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x94], 0
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x640510
call eax
test eax, eax
je 0x64240f
mov eax, dword [edi + 0x1c]
cmp eax, esi
jne 0x640be5
mov edx, dword [ebx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x180]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x168], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
mov dword [esp + 0x16c], edx
mov edx, dword [ebx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0xc4]
push eax
mov ecx, ebx
call edx
mov eax, dword [eax]
mov edx, dword [esi]
mov edx, dword [edx + 0xa4]
push eax
lea ecx, [esp + 0x16c]
push ecx
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x640a81
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc4], 0
mov esi, dword [esp + 0x184]
test esi, esi
je 0x640ac7
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0xf4]
call fcn.006e2c00
mov eax, dword [0x100ef808]
push esi
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x10c], 0
je 0x640ac7
mov esi, dword [esp + 0x108]
call fcn.006c54d0
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x34]
push eax
call edx
push 4
lea eax, [esp + 0x74]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x70]
push eax
call edx
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
test esi, esi
mov dword [esp + 0x18], esi
je 0x640b0a
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x9c]
push eax
call dword [0x100ef7e8]
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
push ecx
lea ebx, [esp + 0x9c]
call fcn.0063b590
test eax, eax
jne 0x640b68
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov ebx, dword [esp + 0x98]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
mov ecx, ebx
mov dword [esp + 0x14], eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x641e13
mov eax, dword [esp + 0x98]
xor ebx, ebx
cmp eax, ebx
je 0x640b84
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x98], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x640bac
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x640bc0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x640bd4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x640510
cmp eax, 2
je 0x641f0a
cmp eax, 1
je 0x641f21
cmp eax, 3
je 0x641f21
cmp eax, 4
je 0x641f21
cmp eax, 5
je 0x641f21
mov eax, dword [ebx]
mov edx, dword [eax + 0x60]
mov ecx, ebx
call edx
test eax, eax
mov ecx, ebx
je 0x641ae6
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
je 0x641360
mov ecx, dword [edi + 0x20]
test ecx, 1
je 0x640c4b
test ecx, 0x40
jne 0x6420d3
test ecx, 0x30
je 0x640c60
test dword [edi + 4], 0x100000
je 0x6420d3
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x640c71
cmp eax, 4
je 0x640c71
cmp eax, 5
jne 0x640c7d
test ecx, 1
jne 0x6420d3
cmp eax, esi
je 0x640c94
cmp eax, 2
je 0x640c94
cmp eax, 3
je 0x640c94
cmp eax, 5
jne 0x642019
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
push 0x100cf494
lea edx, [esp + 0x1d4]
push edx
mov dword [esp + 0x144], ecx
call dword [0x100ef7e0]
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x1b8]
mov dword [esp + 0x1c4], 0
call fcn.00634250
test eax, eax
je 0x640ce2
cmp dword [esp + 0x1c4], 0
je 0x642098
mov eax, dword [esp + 0x13c]
mov esi, dword [esp + 0x20]
mov dword [esi + 0x14], eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call edx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x640d25
add eax, 1
cmp dword [esi + 0x14], eax
jne 0x640d25
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
lea edx, [ecx + eax*2 - 2]
mov ax, word [esi + 8]
sub ax, word [esi + 0x14]
add ax, 1
jmp 0x640d35
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
lea edx, [ecx + eax*2]
mov ax, word [esi + 8]
sub ax, word [esi + 0x14]
add ax, ax
mov dword [esp + 0xa0], edx
mov word [esp + 0x9e], ax
mov word [esp + 0x9c], ax
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
mov ecx, ebx
call edx
test dword [edi + 0x20], 1
mov esi, eax
je 0x640dca
cmp word [esp + 0x9c], 0
ja 0x6420bd
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x64210a
cmp eax, 5
je 0x64210a
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
mov ecx, ebx
call edx
cmp eax, 2
je 0x640dca
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x640da4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x1c]
push eax
and ecx, 0xffffff7f
push ecx
push 1
mov dword [esp + 0x28], 0
call fcn.00633650
add esp, 0xc
mov esi, 2
mov eax, dword [edi + 0x20]
test al, 0x40
jne 0x640dd5
test al, 1
jne 0x640e1c
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
cmp eax, 2
jne 0x640e1c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x640df3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x1c]
and ecx, 0xffffff6f
push eax
or ecx, 0x20
push ecx
push 0
mov dword [esp + 0x28], 0
call fcn.00633650
add esp, 0xc
mov esi, 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x1a0]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x110], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x114], edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x198]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x158], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
mov eax, dword [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x164]
mov dword [esp + 0x168], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0xa8]
push eax
lea eax, [esp + 0x50]
push eax
call edx
mov eax, dword [esp + 0x19c]
test eax, eax
mov esi, eax
je 0x640ed7
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0x1fc]
call fcn.006e2c00
mov eax, dword [0x100ef808]
push esi
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x214], 0
je 0x640ed7
mov esi, dword [esp + 0x210]
call fcn.006c54d0
mov esi, dword [esp + 0x1a4]
test esi, esi
je 0x640f1e
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0x21c]
call fcn.006e2c00
mov ecx, dword [0x100ef808]
push esi
push 1
push ecx
call dword [0x100cf260]
cmp byte [esp + 0x234], 0
je 0x640f1e
mov esi, dword [esp + 0x230]
call fcn.006c54d0
push 4
lea edx, [esp + 0x34]
push edx
call dword [0x100ef7e8]
push 4
lea eax, [esp + 0x54]
push eax
call dword [0x100ef7e8]
mov ebx, dword [esp + 0x1c]
push 0x100cf494
lea ecx, [esp + 0x174]
push ecx
call dword [0x100ef7e0]
mov ecx, dword [edi + 0x20]
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x50]
push eax
mov eax, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 4]
push eax
push ecx
lea eax, [esp + 0x180]
push eax
mov ecx, ebx
call edx
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x642145
cmp word [esp + 0x9c], si
jbe 0x641152
push 4
lea eax, [esp + 0x4c]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x48]
push eax
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x18]
push eax
mov eax, dword [edi + 4]
push eax
lea eax, [esp + 0xac]
push eax
call edx
mov ebx, eax
and eax, 0xefffffff
cmp eax, 0xc0000034
jne 0x6410b8
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x48]
push eax
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x18]
push eax
mov eax, dword [edi + 0x14]
push eax
mov eax, dword [edi + 4]
push eax
lea eax, [esp + 0xb0]
push eax
call edx
mov ebx, eax
cmp ebx, esi
jne 0x64213c
mov eax, dword [esp + 0x20]
cmp dword [eax + 0xc], 0xffffffff
je 0x6410c0
or ecx, 0xffffffff
lea eax, [esp + 0x9c]
lea esi, [esp + 0xf0]
call fcn.006340d0
lea eax, [esp + 0x1e8]
mov edx, esi
call fcn.00634510
mov ecx, dword [eax + 4]
lea eax, [esp + 0x1c8]
mov edx, esi
call fcn.006343a0
mov ecx, dword [eax]
mov dword [esp + 0x160], ecx
mov edx, dword [eax + 4]
push 8
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x138]
push ecx
mov dword [esp + 0x170], edx
call dword [0x100ef7ec]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x134]
push eax
call edx
test eax, eax
jne 0x6410c0
mov eax, dword [esp + 0xd4]
test al, 0x20
jne 0x6410c0
mov ecx, dword [esp + 0x1c]
or eax, 0x20
mov dword [esp + 0xd4], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
lea eax, [esp + 0x134]
push eax
call edx
jmp 0x6410c0
cmp ebx, esi
jne 0x64213c
push 4
lea eax, [esp + 0xbc]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xb8]
push eax
call edx
mov edx, dword [esp + 0xb8]
mov ebx, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [ebx + 0x18]
push edx
xor esi, esi
call eax
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x64110a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x48]
cmp eax, esi
mov dword [esp + 0x30], eax
je 0x641122
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xb8]
cmp ecx, esi
je 0x641140
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb8], esi
cmp eax, esi
je 0x641176
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x48], esi
jmp 0x641176
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x641162
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x50]
cmp eax, esi
mov dword [esp + 0x30], eax
je 0x641176
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
cmp eax, 2
je 0x6411d8
push 4
lea eax, [esp + 0xc4]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xc0]
push eax
call edx
mov edx, dword [esp + 0xc0]
mov ebx, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [ebx + 0x18]
push edx
call eax
mov eax, dword [esp + 0xc0]
cmp eax, esi
je 0x6411d8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc0], esi
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xe0]
push ecx
call fcn.00668680
mov edi, dword [eax]
add esp, 0x14
test edi, edi
mov dword [esp + 0x18], edi
je 0x641213
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x641231
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xd0], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0063b1a0
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
test esi, esi
mov dword [esp + 0x64], esi
je 0x64125c
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x94]
push eax
call dword [0x100ef7e8]
mov ecx, dword [ebx + 8]
mov eax, dword [ebp + 8]
push ecx
lea ebx, [esp + 0x94]
call fcn.0063b590
test eax, eax
mov ebx, dword [esp + 0x10]
jne 0x6412c0
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov edi, dword [esp + 0x90]
mov ecx, ebx
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
mov ecx, edi
mov dword [esp + 0x14], eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x642182
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x90]
test eax, eax
je 0x6412de
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x90], 0
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
xor esi, esi
cmp edi, esi
je 0x641300
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, dword [esp + 0x50]
cmp eax, esi
je 0x641314
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x641328
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x64133c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x641350
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], esi
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov edi, dword [ebp + 0x10]
jmp 0x640510
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x64137a
cmp eax, 2
je 0x64137a
cmp eax, 3
je 0x64137a
cmp eax, 5
jne 0x64222a
mov ecx, dword [edi + 0x20]
mov edx, ecx
and edx, 1
je 0x641390
test ecx, 0x40
jne 0x6420d3
cmp eax, esi
je 0x641399
cmp eax, 5
jne 0x6413a1
cmp edx, esi
jne 0x6420d3
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x14]
push 0x100cf494
lea ecx, [esp + 0x1e4]
push ecx
mov dword [esp + 0x154], eax
call dword [0x100ef7e0]
mov eax, dword [esp + 0x20]
lea esi, [esp + 0xd8]
mov dword [esp + 0xe4], 0
call fcn.00634250
test eax, eax
je 0x6413ef
cmp dword [esp + 0xe4], 0
je 0x64225d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14c]
mov dword [ecx + 0x14], edx
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x641429
add eax, 1
cmp edx, eax
jne 0x641429
mov eax, edx
mov edx, dword [ecx]
lea eax, [edx + eax*2 - 2]
mov dword [esp + 0xac], eax
mov ax, word [ecx + 8]
sub ax, word [ecx + 0x14]
add ax, 1
jmp 0x64143d
mov eax, dword [ecx]
lea edx, [eax + edx*2]
mov ax, word [ecx + 8]
sub ax, word [ecx + 0x14]
mov dword [esp + 0xac], edx
mov edx, dword [edi + 0x20]
add ax, ax
mov esi, edx
and esi, 1
mov word [esp + 0xaa], ax
mov word [esp + 0xa8], ax
je 0x641477
test ax, ax
ja 0x642269
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x642295
cmp eax, 5
je 0x642295
mov eax, dword [ebp + 8]
cmp dword [eax + 0x70], 1
jne 0x641981
push 4
lea ecx, [esp + 0x2c]
push ecx
call dword [0x100ef7e8]
mov eax, dword [edi + 0x14]
and eax, 0xffffff7f
test esi, esi
jne 0x6414a3
and eax, 0xffffffef
or eax, 0x20
lea edx, [esp + 0x28]
push edx
push eax
push esi
call fcn.00633650
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
add esp, 0xc
lea ecx, [esp + 0x178]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x150], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x154], edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x1b0]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x140], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
mov eax, dword [esp + 0x28]
push eax
xor eax, eax
test esi, esi
setne al
mov dword [esp + 0x148], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0xa8]
add eax, 1
push eax
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x14c]
push eax
lea eax, [esp + 0x4c]
push eax
call edx
lea eax, [esp + 0x1b0]
call fcn.006b5660
lea eax, [esp + 0x178]
call fcn.006b5660
push 4
lea eax, [esp + 0x30]
push eax
call dword [0x100ef7e8]
push 4
lea ecx, [esp + 0x50]
push ecx
call dword [0x100ef7e8]
mov esi, dword [esp + 0x28]
push 0x100cf494
lea edx, [esp + 0x18c]
push edx
call dword [0x100ef7e0]
mov edx, dword [edi + 0x20]
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [edi + 0x18]
push edx
mov edx, dword [edi + 4]
push ecx
push edx
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x198]
push ecx
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
jne 0x6422b8
cmp word [esp + 0xa8], ax
jbe 0x64178f
push 4
lea eax, [esp + 0x48]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x44]
push eax
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x18]
push eax
mov eax, dword [edi + 4]
push eax
lea eax, [esp + 0xb8]
push eax
call edx
mov ebx, eax
and eax, 0xefffffff
cmp eax, 0xc0000034
jne 0x6416ef
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x20]
and eax, 0xffffff7f
test dl, 1
jne 0x64160b
and eax, 0xffffffef
or eax, 0x20
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx]
lea ebx, [esp + 0x44]
push ebx
push edx
mov edx, dword [edi + 0x18]
push edx
push eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [esi + 0xc]
lea edx, [esp + 0xbc]
push edx
call eax
mov ebx, eax
test ebx, ebx
jne 0x6422af
or ecx, 0xffffffff
lea eax, [esp + 0xa8]
lea esi, [esp + 0xf0]
call fcn.006340d0
cmp dword [esp + 0xfc], 0xffffffff
je 0x6416f7
lea eax, [esp + 0x1d8]
mov edx, esi
call fcn.00634510
mov ecx, dword [eax + 4]
lea eax, [esp + 0x1f0]
mov edx, esi
call fcn.006343a0
mov ecx, dword [eax]
mov dword [esp + 0x118], ecx
mov edx, dword [eax + 4]
push 8
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x128], edx
call dword [0x100ef7ec]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x84]
push eax
call edx
test eax, eax
jne 0x6416f7
mov eax, dword [esp + 0xc8]
test al, 0x20
jne 0x6416f7
mov ecx, dword [esp + 0x28]
or eax, 0x20
mov dword [esp + 0xc8], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
lea eax, [esp + 0x84]
push eax
call edx
jmp 0x6416f7
test ebx, ebx
jne 0x6422af
push 4
lea eax, [esp + 0xc0]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xbc]
push eax
call edx
mov edx, dword [esp + 0xbc]
mov esi, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 0x18]
push edx
call eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x64173f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x44]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x641757
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x641779
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0xbc], 0
test eax, eax
je 0x6417b3
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x44], 0
jmp 0x6417b3
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x64179f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x6417b3
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
cmp eax, 2
je 0x641819
push 4
lea eax, [esp + 0xb8]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xb4]
push eax
call edx
mov edx, dword [esp + 0xb4]
mov esi, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 0x18]
push edx
call eax
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x641819
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xb4], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
push eax
push ecx
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00668680
mov edi, dword [eax]
add esp, 0x14
test edi, edi
mov dword [esp + 0x18], edi
je 0x641851
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x641869
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0063b1a0
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
test esi, esi
mov dword [esp + 0x14], esi
je 0x641894
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x7c]
push eax
call dword [0x100ef7e8]
mov ecx, dword [ebx + 8]
mov eax, dword [ebp + 8]
push ecx
lea ebx, [esp + 0x7c]
call fcn.0063b590
test eax, eax
mov ebx, dword [esp + 0x10]
jne 0x6418e7
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov edi, eax
mov eax, dword [edx + 0xc]
call eax
cmp edi, eax
je 0x6422f5
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x6418ff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x78], 0
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
xor esi, esi
cmp edi, esi
je 0x641921
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x641935
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x641949
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x64195d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x641971
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], esi
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov edi, dword [ebp + 0x10]
jmp 0x640510
mov eax, dword [edi + 0x28]
mov ecx, dword [0x100ef48c]
push eax
mov eax, dword [edi + 0x24]
push eax
mov eax, dword [edi + 0x14]
push edx
mov edx, dword [edi + 0x18]
push 0
push edx
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [edi + 0xc]
push edx
mov edx, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push edx
mov edx, dword [edi]
add ecx, 0x190
push eax
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x24]
call edx
call eax
test eax, eax
mov dword [esp + 0x18], eax
je 0x641a37
mov ecx, dword [0x100ef48c]
mov eax, dword [edi + 8]
mov edx, dword [ecx + 0x220]
add ecx, 0x220
push eax
mov eax, dword [edx + 0x24]
call eax
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x6423cb
mov edx, dword [edi + 0x28]
mov eax, dword [edi + 0x24]
mov ecx, dword [0x100ef48c]
push edx
mov edx, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x18]
push edx
mov edx, dword [edi + 0x14]
push 2
push eax
mov eax, dword [edi + 0x10]
push edx
mov edx, dword [edi + 0xc]
push eax
mov eax, dword [edi + 8]
push edx
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
add ecx, 0x190
push edx
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
call eax
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x6423cb
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x74]
test esi, esi
mov dword [esp + 0x64], esi
je 0x641a4d
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x9c]
mov ecx, esi
call eax
push 4
lea ecx, [esp + 0xa8]
push ecx
call dword [0x100ef7e8]
mov edx, dword [edi + 8]
mov eax, dword [ebp + 8]
push edx
lea ebx, [esp + 0xa8]
call fcn.0063b590
test eax, eax
jne 0x641aa3
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, ebx
je 0x64239a
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x641ac1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xa4], 0
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x640510
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0xffffffff
push edx
je 0x641b54
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
lea eax, [esp + 0xf0]
push eax
mov eax, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x14]
push edx
mov edx, dword [edi + 0xc]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [edi + 8]
push edx
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.0063c200
cmp dword [esp + 0x18], esi
je 0x6423e8
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
jmp 0x640510
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x24]
lea eax, [esp + 0xf4]
push eax
mov eax, dword [edi + 0x20]
push ecx
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x18]
push eax
mov eax, dword [edi + 0x14]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [edi + 0xc]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [edi + 8]
push edx
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.0063dae0
cmp dword [esp + 0x18], esi
je 0x642409
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
jmp 0x640510
mov edi, dword [edi + 0x1c]
cmp edi, 1
je 0x641bbe
cmp edi, 4
jne 0x6420d3
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc0000034
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x24]
push eax
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
lea edx, [esp + 0x14]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x58]
mov edx, dword [edx + 0xc]
push eax
call edx
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x24]
call fcn.00675d90
lea esi, [esp + 0x68]
call fcn.00675d90
lea esi, [esp + 0x18]
call fcn.0065ad40
mov ebx, dword [edi + 0x20]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 4]
call fcn.0066ad80
mov edi, dword [eax]
xor ebx, ebx
add esp, 4
cmp edi, ebx
mov dword [esp + 0x24], edi
je 0x641c54
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
lea esi, [esp + 0x14]
call fcn.00675d90
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
lea ecx, [esp + 0x80]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0063b1a0
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
lea esi, [esp + 0x24]
mov dword [ecx], eax
call fcn.00675d90
lea esi, [esp + 0x6c]
call fcn.00675d90
lea esi, [esp + 0xb0]
call fcn.00675d90
lea esi, [esp + 0x58]
call fcn.00675d90
lea esi, [esp + 0x10]
call fcn.00675d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [edi + 0x1c]
cmp edi, 1
je 0x641bbe
cmp edi, 4
je 0x641bbe
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x24]
push eax
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
lea edx, [esp + 0x14]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x8c]
mov edx, dword [edx + 0xc]
push eax
call edx
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x24]
call fcn.00675d90
lea esi, [esp + 0x74]
call fcn.00675d90
lea esi, [esp + 0x18]
call fcn.0065ad40
mov ebx, dword [edi + 0x20]
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x8c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 4]
call fcn.0066ad80
mov edi, dword [eax]
add esp, 4
test edi, edi
mov dword [esp + 0x24], edi
je 0x641d7b
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
lea esi, [esp + 0x14]
call fcn.00675d90
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0063b1a0
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
lea esi, [esp + 0x24]
mov dword [ecx], eax
call fcn.00675d90
lea esi, [esp + 0x7c]
call fcn.00675d90
lea esi, [esp + 0x8c]
call fcn.00675d90
lea esi, [esp + 0x60]
call fcn.00675d90
lea esi, [esp + 0x10]
call fcn.00675d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
call eax
lea esi, [esp + 0x94]
call fcn.00675d90
lea esi, [esp + 0x18]
call fcn.0065ad40
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x38]
test ebx, ebx
je 0x641e08
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [esp + 0x14]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x38]
push eax
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [esp + 0x5c]
mov eax, dword [eax + 0xc]
push edx
call eax
lea esi, [esp + 0x38]
call fcn.00675d90
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x98]
call fcn.00675d90
lea esi, [esp + 0x18]
call fcn.0065ad40
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x74]
call fcn.0066ad80
mov edi, dword [eax]
xor ebx, ebx
add esp, 4
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x641e95
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [esp + 0x38]
call fcn.00675d90
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov edx, dword [edi]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x80]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0063b1a0
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
lea esi, [esp + 0x14]
mov dword [ecx], eax
call fcn.00675d90
lea esi, [esp + 0x70]
call fcn.00675d90
lea esi, [esp + 0x34]
call fcn.00675d90
lea esi, [esp + 0x5c]
call fcn.00675d90
lea esi, [esp + 0x10]
call fcn.00675d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc0000035
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x38]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x34]
push eax
call edx
mov ebx, dword [edi + 0x20]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
mov eax, dword [edi + 4]
call fcn.0066ad80
mov esi, dword [eax]
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x641f77
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x641f8b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], ebx
mov edi, dword [edi + 0x1c]
cmp edi, 4
je 0x641f98
cmp edi, 5
jne 0x641fb7
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call edx
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov edi, esi
call fcn.0063b1a0
cmp esi, ebx
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
mov dword [ecx], eax
je 0x641fda
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x641fee
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x642002
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
cmp eax, 1
je 0x64202a
cmp eax, 4
jne 0x6420d3
lea esi, [esp + 0xd8]
call fcn.00634560
mov eax, dword [esp + 0x20]
call fcn.00634250
test eax, eax
je 0x642053
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x6420a6
cmp eax, 1
jne 0x642081
cmp dword [edi + 0x1c], 4
jne 0x641bbe
test dword [edi + 0x20], 1
je 0x641bbe
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc0000229
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x14], eax
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc000003a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [edi + 0x1c]
cmp edi, 2
je 0x6420ea
cmp edi, 3
je 0x6420ea
lea esi, [esp + 0x1c]
call fcn.00675d90
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x1c]
call fcn.00675d90
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc0000103
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x642122
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x64212e
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x48]
call fcn.00675d90
lea esi, [esp + 0x50]
call fcn.00675d90
lea esi, [esp + 0x30]
call fcn.00675d90
lea esi, [esp + 0x40]
call fcn.00675d90
lea esi, [esp + 0x1c]
call fcn.00675d90
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, ebx
and eax, 0xefffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
lea edx, [esp + 0x38]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x40]
mov edx, dword [edx + 0xc]
push eax
call edx
lea esi, [esp + 0x38]
call fcn.00675d90
lea esi, [esp + 0x14]
call fcn.00675d90
lea esi, [esp + 0x90]
call fcn.00675d90
lea esi, [esp + 0x64]
call fcn.0065ad40
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ecx + 4], 2
mov edx, dword [eax + 0xc]
lea esi, [esp + 0x18]
mov dword [edx], 0
call fcn.00675d90
lea esi, [esp + 0x50]
call fcn.00675d90
lea esi, [esp + 0x30]
call fcn.00675d90
lea esi, [esp + 0x40]
call fcn.00675d90
lea esi, [esp + 0x1c]
call fcn.00675d90
lea esi, [esp + 0x10]
call fcn.00675d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0x1c]
cmp edx, 1
je 0x64223b
cmp edx, 4
jne 0x6420d3
mov eax, dword [edi + 0x20]
mov ecx, eax
and ecx, 1
je 0x64224d
test al, 0x40
jne 0x6420d3
cmp edx, 4
jne 0x64202a
cmp ecx, esi
jmp 0x642024
mov eax, dword [esp + 0x14c]
jmp 0x64209f
mov edi, dword [edi + 0x1c]
cmp edi, 2
je 0x6420f3
cmp edi, 3
je 0x6420f3
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x6422a1
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x44]
call fcn.00675d90
lea esi, [esp + 0x4c]
call fcn.00675d90
lea esi, [esp + 0x2c]
call fcn.00675d90
lea esi, [esp + 0x3c]
call fcn.00675d90
lea esi, [esp + 0x28]
call fcn.00675d90
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, ebx
and eax, 0xefffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
lea edx, [esp + 0x64]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x3c]
mov edx, dword [edx + 0xc]
push eax
call edx
lea esi, [esp + 0x64]
call fcn.00675d90
lea esi, [esp + 0x38]
call fcn.00675d90
lea esi, [esp + 0x78]
call fcn.00675d90
lea esi, [esp + 0x14]
call fcn.0065ad40
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ecx + 4], 2
mov edx, dword [eax + 0xc]
lea esi, [esp + 0x18]
mov dword [edx], 0
call fcn.00675d90
lea esi, [esp + 0x4c]
call fcn.00675d90
lea esi, [esp + 0x2c]
call fcn.00675d90
lea esi, [esp + 0x3c]
call fcn.00675d90
lea esi, [esp + 0x28]
call fcn.00675d90
lea esi, [esp + 0x10]
call fcn.00675d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
call edx
lea esi, [esp + 0xa4]
call fcn.00675d90
lea esi, [esp + 0x64]
call fcn.0065ad40
cmp dword [esp + 0x18], 0
jne 0x6423cb
mov eax, dword [edi + 0xc]
mov dword [eax + 4], 2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6423db
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esp + 0x14], esi
jne 0x64240f
mov edi, dword [esp + 0xe8]
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esp + 0x14], esi
je 0x64242c
mov eax, edi
call fcn.00651f30
lea esi, [esp + 0x10]
mov edi, eax
call fcn.00675d90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [esp + 0xec]
lea esi, [esp + 0x10]
call fcn.00675d90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc