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

Disassembly:
sub esp, 0x84
mov ecx, dword [esp + 0x88]
push ebx
push ebp
push esi
mov eax, dword [ecx]
mov esi, dword [esp + 0x98]
mov ebx, dword [ecx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x38]
dec eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x10], eax
dec eax
mov dword [ecx + 0x38], eax
movzx eax, byte [esi]
mov dword [esp + 0x18], 0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], eax
push edi
mov edi, dword [esi + 0x30]
mov dword [esp + 0x2c], edi
mov edx, dword [edi]
mov dword [esp + 0x18], edx
cmp eax, 0x87
je 0x507352
mov eax, dword [esp + 0x24]
mov esi, 1
cmp byte [eax + 0x57], 0
jne 0x50734b
mov eax, dword [esp + 0x9c]
lea ebp, [edx + edx*4]
shl ebp, 2
mov eax, dword [eax + 0x1c]
cmp esi, dword [eax]
jg 0x50734b
xor ecx, ecx
test edx, edx
jle 0x5072bf
mov ebx, dword [esp + 0x18]
lea edx, [edi + 0x18]
movzx eax, word [edx]
cmp eax, esi
je 0x5072b7
inc ecx
add edx, 0x14
cmp ecx, ebx
jl 0x5072a8
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
cmp ecx, edx
jne 0x507335
push 0
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0
push eax
push 0x9b
push dword [esp + 0x30]
mov dword [esp + 0x68], 0
call fcn.00524940
add esp, 0x10
test eax, eax
je 0x5073af
or dword [eax + 4], 0x400
push eax
push edi
push dword [esp + 0xa0]
mov dword [eax + 8], esi
call fcn.00528b40
mov edx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0xa8]
add esp, 0xc
mov dword [esp + 0x2c], edi
mov dword [eax + 0x30], edi
test edi, edi
je 0x50733c
inc edx
mov word [edi + ebp + 0x18], si
mov dword [esp + 0x18], edx
add ebp, 0x14
jmp 0x50733c
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x24]
inc esi
cmp byte [ecx + 0x57], 0
je 0x507290
mov esi, dword [esp + 0x9c]
lea eax, [edx*4 + 4]
push 0
push eax
push dword [esp + 0x2c]
call fcn.00521f00
mov ebp, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
je 0x5073bf
mov ecx, 1
mov dword [eax], ebp
cmp ebp, ecx
jl 0x507397
lea edx, [edi + 0x18]
mov ebx, eax
movzx eax, word [edx]
lea edx, [edx + 0x14]
dec eax
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, ebp
jle 0x507384
mov ebx, dword [esp + 0x48]
push 1
push esi
push dword [esp + 0xa0]
call fcn.005084d0
add esp, 0xc
mov dword [esp + 0x50], eax
jmp 0x5073c7
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x84
ret
mov dword [esp + 0x50], 0
cmp dword [esp + 0x30], 0x87
jne 0x5073e3
mov dword [esp + 0x38], 0
mov edx, 1
jmp 0x507562
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x98]
mov edx, dword [eax]
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x10], edx
lea edi, [eax + 1]
inc eax
add eax, edx
mov dword [esp + 0x38], edi
mov dword [ecx + 0x2c], eax
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x507421
push 0
push edi
push 0
push 0x47
push ebx
call fcn.004ffef0
mov edx, dword [esp + 0x24]
add esp, 0x14
jmp 0x507454
mov ebp, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea edx, [edx + 5]
lea eax, [edx + edx*4]
push 0
push eax
push dword [esp + 0x2c]
call fcn.00521f00
mov edi, dword [esp + 0x38]
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
je 0x5075c1
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov word [edx + 6], cx
lea eax, [ecx + 6]
lea eax, [edx + eax*4]
mov dword [edx + 0x10], eax
lea eax, [ecx + 1]
mov word [edx + 8], ax
mov al, byte [esi + 0x54]
mov byte [edx + 4], al
lea eax, [ecx*4 + 1]
add eax, ecx
mov dword [edx + 0xc], esi
push eax
lea eax, [edx + 0x18]
mov dword [edx], 1
push 0
push eax
call sub.MSVCRT.dll_memset
xor esi, esi
add esp, 0xc
cmp dword [esp + 0x10], esi
jle 0x507548
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov ebp, dword [esp + 0x9c]
add eax, 0x14
mov edi, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x507500
push esi
push eax
push dword [esp + 0xa0]
call fcn.005071c0
add esp, 0xc
test eax, eax
jne 0x50751c
jmp 0x507502
xor eax, eax
mov ecx, dword [ebp + 0x1c]
cmp esi, dword [ecx]
jge 0x50751c
push dword [ecx + ebx + 8]
push dword [esp + 0x9c]
call fcn.005276d0
add esp, 8
mov ecx, dword [esp + 0x40]
add ebx, 0x14
mov dword [ecx], eax
add ecx, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 0x10]
mov byte [esi + eax], 0
inc esi
cmp esi, edi
jl 0x5074e2
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x9c]
cmp dword [esp + 0x30], 0x86
mov edx, 1
jne 0x50762d
mov eax, dword [esp + 0x24]
test dword [eax + 0x50], 0x200000
jne 0x50762d
cmp dword [esi + 0x34], 0
lea ecx, [esi + 0x34]
mov eax, esi
je 0x50762d
movzx eax, byte [eax]
cmp eax, dword [esp + 0x30]
jne 0x507597
mov eax, dword [ecx]
inc edx
cmp dword [eax + 0x34], 0
lea ecx, [eax + 0x34]
jne 0x507582
cmp edx, 3
jle 0x50762d
mov ecx, esi
mov dword [esp + 0x40], ecx
cmp edx, 2
jle 0x507633
lea eax, [edx - 3]
shr eax, 1
inc eax
mov ecx, dword [ecx + 0x34]
dec eax
jne 0x5075b5
mov dword [esp + 0x40], ecx
jmp 0x507633
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x57], 0
jne 0x507620
cmp byte [eax + 0x58], 0
jne 0x507620
cmp dword [eax + 0xc8], 0
mov byte [eax + 0x57], 1
jle 0x5075e8
mov dword [eax + 0x128], 1
inc dword [eax + 0x130]
xor ecx, ecx
mov word [eax + 0x134], cx
mov eax, dword [eax + 0x10c]
test eax, eax
je 0x507620
push 0x59c764
push eax
call fcn.00524240
mov eax, dword [esp + 0x2c]
add esp, 8
mov eax, dword [eax + 0x10c]
mov dword [eax + 0xc], 7
mov dword [esp + 0x1c], 0
jmp 0x50754f
mov ecx, esi
mov dword [esp + 0x40], esi
mov eax, dword [ecx + 0x34]
push 0
push edi
mov edi, dword [esp + 0xa0]
mov dword [ecx + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [esp + 0x44], eax
push dword [edi]
call fcn.00528ef0
mov ecx, dword [esp + 0x48]
push str.ORDER
mov dword [ecx + 0x30], eax
push dword [esi + 0x30]
push esi
push edi
call fcn.005411f0
mov eax, dword [esp + 0x58]
push str.ORDER
push dword [eax + 0x30]
push eax
push edi
call fcn.005411f0
push dword [esp + 0x40]
push esi
push edi
call fcn.004e31d0
add esp, 0x38
cmp dword [esi + 8], 0
je 0x50776e
cmp dword [esp + 0x30], 0x87
jne 0x50776e
mov edx, dword [edi + 0x2c]
inc edx
mov dword [esp + 0x34], edx
lea eax, [edx + 1]
mov dword [edi + 0x2c], eax
mov edi, dword [esi + 0xc]
mov dword [esp + 0x10], eax
test edi, edi
je 0x5076c4
inc edi
jmp 0x5076c7
mov edi, dword [esi + 8]
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x5076e4
push 0
push edx
push edi
push 0x4f
push ebx
call fcn.004ffef0
mov edx, dword [esp + 0x48]
add esp, 0x14
jmp 0x507713
mov ebp, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x507736
push 0
push dword [esp + 0x14]
push edx
push 0x4f
push ebx
call fcn.004ffef0
mov edi, dword [esp + 0xac]
add esp, 0x14
jmp 0x50777e
mov edi, dword [esp + 0x98]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x50777e
mov dword [esp + 0x10], 0
mov dword [esp + 0x34], 0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x507792
push eax
push dword [esp + 0x28]
call fcn.00527c90
add esp, 8
mov dword [esi + 0x3c], 0
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x28], ecx
mov byte [esp + 0x78], 0xd
mov dword [esp + 0x7c], ecx
lea edx, [ecx + 1]
mov dword [esp + 0x80], 0
lea eax, [edx + 2]
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
mov dword [edi + 0x2c], eax
movzx eax, byte [esi]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov byte [esp + 0x5c], 0xd
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
sub eax, 0x87
je 0x507837
dec eax
je 0x507830
dec eax
je 0x507829
mov eax, str.UNION
jmp 0x50783c
mov eax, str.INTERSECT
jmp 0x50783c
mov eax, str.EXCEPT
jmp 0x50783c
mov eax, str.UNION_ALL
push eax
push str.MERGE___s_
push 1
push edi
call fcn.00553280
mov edi, dword [ebx + 0x74]
add esp, 0x10
lea edx, [edi + 1]
cmp dword [ebx + 0x78], edi
jg 0x50786e
push edx
push 0
push dword [esp + 0x30]
push 0xd
push ebx
call fcn.004ffef0
add esp, 0x14
mov edi, eax
jmp 0x50789e
mov eax, dword [ebx + 0x70]
lea ecx, [edi + edi*4]
mov ebp, dword [esp + 0x28]
mov dword [ebx + 0x74], edx
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x18]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
push str.LEFT
push 1
push dword [esp + 0xa0]
mov dword [ecx + 8], eax
call fcn.00553280
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x4c]
push dword [esp + 0xac]
call fcn.005427e0
mov ecx, dword [ebx + 0x74]
add esp, 0x18
cmp dword [ebx + 0x78], ecx
jg 0x5078f4
push 0
push 0
push dword [esp + 0x30]
push 0x44
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x507927
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0xc]
mov byte [eax + 0x13], 0
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x1c], 0
mov edx, dword [ebx + 0x74]
test edi, edi
jns 0x507942
lea edi, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x507951
mov eax, 0x5e05ac
jmp 0x50795a
mov eax, dword [ebx + 0x70]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x54], eax
lea edx, [eax + 1]
cmp dword [ebx + 0x78], eax
jg 0x507984
push edx
push 0
push dword [esp + 0x28]
push 0xd
push ebx
call fcn.004ffef0
add esp, 0x14
mov dword [esp + 0x54], eax
jmp 0x5079b0
mov edi, dword [esp + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x74], edx
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x9c]
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
push str.RIGHT
push 1
push dword [esp + 0xa0]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
call fcn.00553280
lea eax, [esp + 0x68]
push eax
push dword [esp + 0xac]
push dword [esp + 0xac]
call fcn.005427e0
mov eax, dword [esp + 0xb4]
add esp, 0x18
mov dword [eax + 8], edi
mov edi, eax
mov dword [edi + 0xc], esi
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x507a25
push 0
push 0
push dword [esp + 0x28]
push 0x44
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x507a58
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0xc]
push dword [esp + 0x14]
mov esi, dword [esp + 0xa4]
push dword [esp + 0x20]
mov byte [eax + 0x13], 0
mov eax, dword [ebx + 0xc]
push dword [esp + 0x40]
mov dword [eax + 0x1c], 0
mov eax, dword [esp + 0x2c]
inc eax
push eax
push esi
lea eax, [esp + 0x8c]
push eax
push edi
push dword [esp + 0xb4]
call fcn.004fd8e0
mov dword [esp + 0x30], eax
add esp, 0x20
mov eax, dword [esp + 0x30]
cmp eax, 0x87
je 0x507ab1
cmp eax, 0x86
jne 0x507adb
push dword [esp + 0x14]
lea eax, [esp + 0x60]
push dword [esp + 0x20]
push dword [esp + 0x40]
push dword [esp + 0x38]
push esi
push eax
push edi
push dword [esp + 0xb4]
call fcn.004fd8e0
add esp, 0x20
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x507b9b
dec dword [esi]
jne 0x507b9b
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x507b46
cmp dword [ecx + 0x210], 0
je 0x507b0e
push esi
push ecx
call fcn.00506030
add esp, 8
jmp 0x507b9b
cmp esi, dword [ecx + 0x164]
jae 0x507b46
cmp esi, dword [ecx + 0x15c]
jb 0x507b2e
mov eax, dword [ecx + 0x158]
mov dword [esi], eax
mov dword [ecx + 0x158], esi
jmp 0x507b9b
cmp esi, dword [ecx + 0x160]
jb 0x507b46
mov eax, dword [ecx + 0x150]
mov dword [esi], eax
mov dword [ecx + 0x150], esi
jmp 0x507b9b
cmp dword [0x5d72d8], 0
je 0x507b91
mov eax, dword [0x5e0280]
test eax, eax
je 0x507b62
push eax
call dword [0x5d7328]
add esp, 4
push esi
call dword [0x5d7304]
sub dword [0x5e0208], eax
dec dword [0x5e022c]
push esi
call dword [0x5d72fc]
mov eax, dword [0x5e0280]
add esp, 8
test eax, eax
je 0x507b9b
push eax
call dword [0x5d7330]
jmp 0x507b98
push esi
call dword [0x5d72fc]
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, 0x88
je 0x507d75
cmp eax, 0x89
je 0x507d75
mov esi, dword [ebx + 0x74]
mov dword [esp + 0x34], esi
cmp dword [ebx + 0x78], esi
jg 0x507bde
push 0
push dword [esp + 0x48]
push dword [esp + 0x34]
push 0xc
push ebx
call fcn.004ffef0
mov esi, eax
add esp, 0x14
mov dword [esp + 0x34], esi
jmp 0x507c11
mov edx, dword [esp + 0x2c]
lea eax, [esi + 1]
mov dword [ebx + 0x74], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x38], edx
cmp dword [ebx + 0x78], edx
jg 0x507c38
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
push 0xe
push ebx
call fcn.004ffef0
add esp, 0x14
mov dword [esp + 0x38], eax
jmp 0x507c6b
lea eax, [edx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x70]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x507c85
push 0
push esi
push 0
push 0xb
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x507cb4
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x3c]
movzx edx, word [edi + 2]
movzx ecx, word [eax + 2]
cmp dx, cx
jl 0x507d20
movsx esi, cx
movsx ecx, dx
lea eax, [esi + 0x31]
cmp ecx, eax
jle 0x507ce5
mov esi, dword [esp + 0x34]
mov eax, edx
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x507d7f
lea eax, [esi + 0x1f]
cmp ecx, eax
jle 0x507d03
mov esi, dword [esp + 0x34]
lea eax, [edx + 1]
movzx eax, ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x507d7f
sub ecx, esi
mov esi, dword [esp + 0x34]
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, dx
movzx eax, ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x507d7f
movsx esi, dx
movsx edx, cx
lea eax, [esi + 0x31]
cmp edx, eax
jle 0x507d3d
mov esi, dword [esp + 0x34]
mov eax, ecx
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x507d7f
lea eax, [esi + 0x1f]
cmp edx, eax
jle 0x507d58
mov esi, dword [esp + 0x34]
lea eax, [ecx + 1]
movzx eax, ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x507d7f
sub edx, esi
mov esi, dword [esp + 0x34]
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx eax, ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x507d7f
mov ecx, dword [esp + 0x14]
mov esi, ecx
mov dword [esp + 0x38], ecx
cmp eax, 0x89
jne 0x507dca
mov eax, dword [esp + 0x3c]
movzx eax, word [eax + 2]
cmp word [edi + 2], ax
jle 0x507d98
mov word [edi + 2], ax
mov edi, esi
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x1c], edx
cmp dword [ebx + 0x78], edx
jg 0x507ec8
mov eax, dword [esp + 0x20]
push 0
push dword [esp + 0x14]
inc eax
push eax
push 0xc
push ebx
call fcn.004ffef0
add esp, 0x14
mov dword [esp + 0x1c], eax
jmp 0x507f00
mov edi, dword [ebx + 0x74]
cmp dword [ebx + 0x78], edi
jg 0x507ded
mov eax, dword [esp + 0x20]
push 0
push dword [esp + 0x14]
inc eax
push eax
push 0xc
push ebx
call fcn.004ffef0
add esp, 0x14
mov edi, eax
jmp 0x507e25
mov edx, dword [esp + 0x20]
lea eax, [edi + 1]
mov ebp, dword [esp + 0x18]
lea ecx, [edi + edi*4]
mov dword [ebx + 0x74], eax
inc edx
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x507e44
push 0
push dword [esp + 0x18]
push dword [esp + 0x30]
push 0xe
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x507e77
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x507e94
push 0
push edi
push 0
push 0xb
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x507d9a
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x507d9a
mov ebp, dword [esp + 0x18]
lea eax, [edx + 1]
lea ecx, [edx + edx*4]
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x70]
mov edx, dword [esp + 0x20]
inc edx
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x507f1c
push 0
push esi
push dword [esp + 0x30]
push 0xe
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x507f4b
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x507f6a
mov eax, dword [esp + 0x14]
push 0
dec eax
push eax
push 0
push 0xb
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x507fa2
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov ebp, dword [esp + 0x18]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x74], eax
dec edx
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x30]
cmp eax, 0x87
jne 0x507fba
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x508079
cmp eax, 0x89
jne 0x507fd3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
inc eax
mov dword [esp + 0x1c], eax
jmp 0x508079
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x10], edx
cmp dword [ebx + 0x78], edx
jg 0x507ff7
push 0
push esi
push dword [esp + 0x30]
push 0xe
push ebx
call fcn.004ffef0
add esp, 0x14
mov dword [esp + 0x10], eax
jmp 0x508026
lea eax, [edx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x70]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x508045
mov eax, dword [esp + 0x14]
push 0
dec eax
push eax
push 0
push 0xb
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x508079
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
dec edx
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x34], ecx
cmp eax, 0x87
je 0x508092
cmp eax, 0x86
jne 0x5080e1
cmp dword [ebx + 0x78], ecx
jg 0x5080ae
push 0
push dword [esp + 0x48]
push dword [esp + 0x34]
push 0xc
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x5080e1
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x74]
mov esi, dword [esp + 0x20]
cmp dword [ebx + 0x78], ecx
jg 0x5080fe
push 0
push edi
push esi
push 0xe
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x508129
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x508148
mov eax, dword [esp + 0x14]
push 0
dec eax
push eax
push 0
push 0xb
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x508180
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov ebp, dword [esp + 0x18]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x74], eax
dec edx
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x54]
mov edx, dword [ebx + 0x74]
test ecx, ecx
jns 0x50818e
lea ecx, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x50819d
mov eax, 0x5e05ac
jmp 0x5081a6
mov eax, dword [ebx + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x5081c9
mov edx, dword [esp + 0x38]
push 0
push edx
push dword [esp + 0x30]
push 0xe
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x5081fc
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x508215
push 0
push edi
push esi
push 0xe
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x508240
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x14]
dec edx
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50825f
push edx
push ebx
push ecx
call fcn.00511f90
add esp, 0xc
jmp 0x508268
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], edx
jg 0x508285
push 0
push 0
push 0
push 0x58
push ebx
call fcn.004ffef0
add esp, 0x14
mov edx, eax
jmp 0x5082b8
lea eax, [edx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0x58
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x5082d1
push dword [esp + 0x4c]
push 0xfffffffffffffff1
push eax
call fcn.004eccc0
add esp, 0xc
jmp 0x50830a
test edx, edx
jns 0x5082d9
mov edx, dword [ebx + 0x74]
dec edx
mov eax, dword [ebx + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x5082fb
push 0xfffffffffffffff1
push dword [esp + 0x50]
push eax
push ebx
call fcn.00564cf0
add esp, 0x10
jmp 0x50830a
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x50830a
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xf1
mov edx, dword [ebx + 0x74]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x84]
cmp dword [ebx + 0x78], edx
jg 0x50832f
push ebp
push esi
push edi
push 0x59
push ebx
call fcn.004ffef0
add esp, 0x14
mov edx, eax
jmp 0x50835a
lea eax, [edx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x70]
mov ebx, dword [esp + 0x48]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x508374
mov ecx, dword [esp + 0x50]
push ecx
push 0xfffffffffffffff7
push eax
call fcn.004eccc0
add esp, 0xc
jmp 0x5083aa
test edx, edx
jns 0x50837c
mov edx, dword [ebx + 0x74]
dec edx
mov eax, dword [ebx + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x50]
je 0x50839f
push 0xfffffffffffffff7
push ecx
push eax
push ebx
call fcn.00564cf0
add esp, 0x10
jmp 0x5083aa
test ecx, ecx
je 0x5083aa
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xf7
mov eax, dword [ebx + 0x74]
test eax, eax
jle 0x5083c1
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [ebx + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x5083e4
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x14]
push edx
push dword [esp + 0x24]
push 0x10
push ebx
call fcn.004ffef0
add esp, 0x14
jmp 0x508417
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x14]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x508435
push edx
push ebx
push ecx
call fcn.00511f90
add esp, 0xc
jmp 0x50843e
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x74]
mov dword [ecx + edx*4], eax
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x24]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x508459
push 1
push eax
push ebx
call fcn.004e04f0
add esp, 0xc
mov ebp, dword [esp + 0x3c]
mov dword [esi + 0x34], ebp
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x38], esi
test eax, eax
je 0x508474
push eax
push ebx
call fcn.004e95e0
add esp, 8
mov ebx, dword [esp + 0x98]
mov dword [ebp + 0x30], 0
mov ecx, dword [ebx + 0xdc]
test ecx, ecx
jne 0x508490
xor eax, eax
jmp 0x5084b6
mov edx, dword [ebx + 8]
test ecx, ecx
jns 0x50849b
mov ecx, dword [edx + 0x74]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x57], 0
je 0x5084aa
mov eax, 0x5e05ac
jmp 0x5084b3
mov eax, dword [edx + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax + 8]
mov dword [ebx + 0xdc], eax
xor eax, eax
cmp dword [ebx + 0x24], eax
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x84
ret