Function at 0x51cb70
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 0x51ccb2
mov eax, dword [esp + 0x24]
mov esi, 1
cmp byte [eax + 0x57], 0
jne 0x51ccab
mov eax, dword [esp + 0x9c]
lea ebp, [edx + edx*4]
shl ebp, 2
mov eax, dword [eax + 0x1c]
cmp esi, dword [eax]
jg 0x51ccab
xor ecx, ecx
test edx, edx
jle 0x51cc1f
mov ebx, dword [esp + 0x18]
lea edx, [edi + 0x18]
movzx eax, word [edx]
cmp eax, esi
je 0x51cc17
inc ecx
add edx, 0x14
cmp ecx, ebx
jl 0x51cc08
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
cmp ecx, edx
jne 0x51cc95
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.0053a2a0
add esp, 0x10
test eax, eax
je 0x51cd0f
or dword [eax + 4], 0x400
push eax
push edi
push dword [esp + 0xa0]
mov dword [eax + 8], esi
call fcn.0053e4a0
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 0x51cc9c
inc edx
mov word [edi + ebp + 0x18], si
mov dword [esp + 0x18], edx
add ebp, 0x14
jmp 0x51cc9c
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x24]
inc esi
cmp byte [ecx + 0x57], 0
je 0x51cbf0
mov esi, dword [esp + 0x9c]
lea eax, [edx*4 + 4]
push 0
push eax
push dword [esp + 0x2c]
call fcn.00537860
mov ebp, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x4c], eax
test eax, eax
je 0x51cd1f
mov ecx, 1
mov dword [eax], ebp
cmp ebp, ecx
jl 0x51ccf7
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 0x51cce4
mov ebx, dword [esp + 0x48]
push 1
push esi
push dword [esp + 0xa0]
call fcn.0051de30
add esp, 0xc
mov dword [esp + 0x50], eax
jmp 0x51cd27
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 0x51cd43
mov dword [esp + 0x38], 0
mov edx, 1
jmp 0x51cec2
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 0x51cd81
push 0
push edi
push 0
push 0x47
push ebx
call fcn.00515850
mov edx, dword [esp + 0x24]
add esp, 0x14
jmp 0x51cdb4
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.00537860
mov edi, dword [esp + 0x38]
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
test edx, edx
je 0x51cf21
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 0x51cea8
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 0x51ce60
push esi
push eax
push dword [esp + 0xa0]
call fcn.0051cb20
add esp, 0xc
test eax, eax
jne 0x51ce7c
jmp 0x51ce62
xor eax, eax
mov ecx, dword [ebp + 0x1c]
cmp esi, dword [ecx]
jge 0x51ce7c
push dword [ecx + ebx + 8]
push dword [esp + 0x9c]
call fcn.0053d030
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 0x51ce42
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 0x51cf8d
mov eax, dword [esp + 0x24]
test dword [eax + 0x50], 0x200000
jne 0x51cf8d
cmp dword [esi + 0x34], 0
lea ecx, [esi + 0x34]
mov eax, esi
je 0x51cf8d
movzx eax, byte [eax]
cmp eax, dword [esp + 0x30]
jne 0x51cef7
mov eax, dword [ecx]
inc edx
cmp dword [eax + 0x34], 0
lea ecx, [eax + 0x34]
jne 0x51cee2
cmp edx, 3
jle 0x51cf8d
mov ecx, esi
mov dword [esp + 0x40], ecx
cmp edx, 2
jle 0x51cf93
lea eax, [edx - 3]
shr eax, 1
inc eax
mov ecx, dword [ecx + 0x34]
dec eax
jne 0x51cf15
mov dword [esp + 0x40], ecx
jmp 0x51cf93
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x57], 0
jne 0x51cf80
cmp byte [eax + 0x58], 0
jne 0x51cf80
cmp dword [eax + 0xc8], 0
mov byte [eax + 0x57], 1
jle 0x51cf48
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 0x51cf80
push 0x5b4e18
push eax
call fcn.00539ba0
mov eax, dword [esp + 0x2c]
add esp, 8
mov eax, dword [eax + 0x10c]
mov dword [eax + 0xc], 7
mov dword [esp + 0x1c], 0
jmp 0x51ceaf
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.0053e850
mov ecx, dword [esp + 0x48]
push str.ORDER
mov dword [ecx + 0x30], eax
push dword [esi + 0x30]
push esi
push edi
call fcn.00556b50
mov eax, dword [esp + 0x58]
push str.ORDER
push dword [eax + 0x30]
push eax
push edi
call fcn.00556b50
push dword [esp + 0x40]
push esi
push edi
call fcn.004f8b30
add esp, 0x38
cmp dword [esi + 8], 0
je 0x51d0ce
cmp dword [esp + 0x30], 0x87
jne 0x51d0ce
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 0x51d024
inc edi
jmp 0x51d027
mov edi, dword [esi + 8]
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x51d044
push 0
push edx
push edi
push 0x4f
push ebx
call fcn.00515850
mov edx, dword [esp + 0x48]
add esp, 0x14
jmp 0x51d073
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 0x51d096
push 0
push dword [esp + 0x14]
push edx
push 0x4f
push ebx
call fcn.00515850
mov edi, dword [esp + 0xac]
add esp, 0x14
jmp 0x51d0de
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 0x51d0de
mov dword [esp + 0x10], 0
mov dword [esp + 0x34], 0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x51d0f2
push eax
push dword [esp + 0x28]
call fcn.0053d5f0
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 0x51d197
dec eax
je 0x51d190
dec eax
je 0x51d189
mov eax, str.UNION
jmp 0x51d19c
mov eax, str.INTERSECT
jmp 0x51d19c
mov eax, str.EXCEPT
jmp 0x51d19c
mov eax, str.UNION_ALL
push eax
push str.MERGE___s_
push 1
push edi
call fcn.00568be0
mov edi, dword [ebx + 0x74]
add esp, 0x10
lea edx, [edi + 1]
cmp dword [ebx + 0x78], edi
jg 0x51d1ce
push edx
push 0
push dword [esp + 0x30]
push 0xd
push ebx
call fcn.00515850
add esp, 0x14
mov edi, eax
jmp 0x51d1fe
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.00568be0
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x4c]
push dword [esp + 0xac]
call fcn.00558140
mov ecx, dword [ebx + 0x74]
add esp, 0x18
cmp dword [ebx + 0x78], ecx
jg 0x51d254
push 0
push 0
push dword [esp + 0x30]
push 0x44
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51d287
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 0x51d2a2
lea edi, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x51d2b1
mov eax, 0x973eec
jmp 0x51d2ba
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 0x51d2e4
push edx
push 0
push dword [esp + 0x28]
push 0xd
push ebx
call fcn.00515850
add esp, 0x14
mov dword [esp + 0x54], eax
jmp 0x51d310
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.00568be0
lea eax, [esp + 0x68]
push eax
push dword [esp + 0xac]
push dword [esp + 0xac]
call fcn.00558140
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 0x51d385
push 0
push 0
push dword [esp + 0x28]
push 0x44
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51d3b8
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.00513240
mov dword [esp + 0x30], eax
add esp, 0x20
mov eax, dword [esp + 0x30]
cmp eax, 0x87
je 0x51d411
cmp eax, 0x86
jne 0x51d43b
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.00513240
add esp, 0x20
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x51d4fb
dec dword [esi]
jne 0x51d4fb
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x51d4a6
cmp dword [ecx + 0x210], 0
je 0x51d46e
push esi
push ecx
call fcn.0051b990
add esp, 8
jmp 0x51d4fb
cmp esi, dword [ecx + 0x164]
jae 0x51d4a6
cmp esi, dword [ecx + 0x15c]
jb 0x51d48e
mov eax, dword [ecx + 0x158]
mov dword [esi], eax
mov dword [ecx + 0x158], esi
jmp 0x51d4fb
cmp esi, dword [ecx + 0x160]
jb 0x51d4a6
mov eax, dword [ecx + 0x150]
mov dword [esi], eax
mov dword [ecx + 0x150], esi
jmp 0x51d4fb
cmp dword [0x8f4e38], 0
je 0x51d4f1
mov eax, dword [0x973bc0]
test eax, eax
je 0x51d4c2
push eax
call dword [0x8f4e88]
add esp, 4
push esi
call dword [0x8f4e64]
sub dword [0x973b48], eax
dec dword [0x973b6c]
push esi
call dword [0x8f4e5c]
mov eax, dword [0x973bc0]
add esp, 8
test eax, eax
je 0x51d4fb
push eax
call dword [0x8f4e90]
jmp 0x51d4f8
push esi
call dword [0x8f4e5c]
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, 0x88
je 0x51d6d5
cmp eax, 0x89
je 0x51d6d5
mov esi, dword [ebx + 0x74]
mov dword [esp + 0x34], esi
cmp dword [ebx + 0x78], esi
jg 0x51d53e
push 0
push dword [esp + 0x48]
push dword [esp + 0x34]
push 0xc
push ebx
call fcn.00515850
mov esi, eax
add esp, 0x14
mov dword [esp + 0x34], esi
jmp 0x51d571
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 0x51d598
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
push 0xe
push ebx
call fcn.00515850
add esp, 0x14
mov dword [esp + 0x38], eax
jmp 0x51d5cb
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 0x51d5e5
push 0
push esi
push 0
push 0xb
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51d614
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 0x51d680
movsx esi, cx
movsx ecx, dx
lea eax, [esi + 0x31]
cmp ecx, eax
jle 0x51d645
mov esi, dword [esp + 0x34]
mov eax, edx
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x51d6df
lea eax, [esi + 0x1f]
cmp ecx, eax
jle 0x51d663
mov esi, dword [esp + 0x34]
lea eax, [edx + 1]
movzx eax, ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x51d6df
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 0x51d6df
movsx esi, dx
movsx edx, cx
lea eax, [esi + 0x31]
cmp edx, eax
jle 0x51d69d
mov esi, dword [esp + 0x34]
mov eax, ecx
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x51d6df
lea eax, [esi + 0x1f]
cmp edx, eax
jle 0x51d6b8
mov esi, dword [esp + 0x34]
lea eax, [ecx + 1]
movzx eax, ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x30]
jmp 0x51d6df
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 0x51d6df
mov ecx, dword [esp + 0x14]
mov esi, ecx
mov dword [esp + 0x38], ecx
cmp eax, 0x89
jne 0x51d72a
mov eax, dword [esp + 0x3c]
movzx eax, word [eax + 2]
cmp word [edi + 2], ax
jle 0x51d6f8
mov word [edi + 2], ax
mov edi, esi
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x1c], edx
cmp dword [ebx + 0x78], edx
jg 0x51d828
mov eax, dword [esp + 0x20]
push 0
push dword [esp + 0x14]
inc eax
push eax
push 0xc
push ebx
call fcn.00515850
add esp, 0x14
mov dword [esp + 0x1c], eax
jmp 0x51d860
mov edi, dword [ebx + 0x74]
cmp dword [ebx + 0x78], edi
jg 0x51d74d
mov eax, dword [esp + 0x20]
push 0
push dword [esp + 0x14]
inc eax
push eax
push 0xc
push ebx
call fcn.00515850
add esp, 0x14
mov edi, eax
jmp 0x51d785
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 0x51d7a4
push 0
push dword [esp + 0x18]
push dword [esp + 0x30]
push 0xe
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51d7d7
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 0x51d7f4
push 0
push edi
push 0
push 0xb
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51d6fa
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 0x51d6fa
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 0x51d87c
push 0
push esi
push dword [esp + 0x30]
push 0xe
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51d8ab
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 0x51d8ca
mov eax, dword [esp + 0x14]
push 0
dec eax
push eax
push 0
push 0xb
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51d902
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 0x51d91a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x51d9d9
cmp eax, 0x89
jne 0x51d933
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
inc eax
mov dword [esp + 0x1c], eax
jmp 0x51d9d9
mov edx, dword [ebx + 0x74]
mov dword [esp + 0x10], edx
cmp dword [ebx + 0x78], edx
jg 0x51d957
push 0
push esi
push dword [esp + 0x30]
push 0xe
push ebx
call fcn.00515850
add esp, 0x14
mov dword [esp + 0x10], eax
jmp 0x51d986
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 0x51d9a5
mov eax, dword [esp + 0x14]
push 0
dec eax
push eax
push 0
push 0xb
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51d9d9
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 0x51d9f2
cmp eax, 0x86
jne 0x51da41
cmp dword [ebx + 0x78], ecx
jg 0x51da0e
push 0
push dword [esp + 0x48]
push dword [esp + 0x34]
push 0xc
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51da41
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 0x51da5e
push 0
push edi
push esi
push 0xe
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51da89
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 0x51daa8
mov eax, dword [esp + 0x14]
push 0
dec eax
push eax
push 0
push 0xb
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51dae0
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 0x51daee
lea ecx, [edx - 1]
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x51dafd
mov eax, 0x973eec
jmp 0x51db06
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 0x51db29
mov edx, dword [esp + 0x38]
push 0
push edx
push dword [esp + 0x30]
push 0xe
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51db5c
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 0x51db75
push 0
push edi
push esi
push 0xe
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51dba0
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 0x51dbbf
push edx
push ebx
push ecx
call fcn.005278f0
add esp, 0xc
jmp 0x51dbc8
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 0x51dbe5
push 0
push 0
push 0
push 0x58
push ebx
call fcn.00515850
add esp, 0x14
mov edx, eax
jmp 0x51dc18
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 0x51dc31
push dword [esp + 0x4c]
push 0xfffffffffffffff1
push eax
call fcn.00502620
add esp, 0xc
jmp 0x51dc6a
test edx, edx
jns 0x51dc39
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 0x51dc5b
push 0xfffffffffffffff1
push dword [esp + 0x50]
push eax
push ebx
call fcn.0057a650
add esp, 0x10
jmp 0x51dc6a
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x51dc6a
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 0x51dc8f
push ebp
push esi
push edi
push 0x59
push ebx
call fcn.00515850
add esp, 0x14
mov edx, eax
jmp 0x51dcba
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 0x51dcd4
mov ecx, dword [esp + 0x50]
push ecx
push 0xfffffffffffffff7
push eax
call fcn.00502620
add esp, 0xc
jmp 0x51dd0a
test edx, edx
jns 0x51dcdc
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 0x51dcff
push 0xfffffffffffffff7
push ecx
push eax
push ebx
call fcn.0057a650
add esp, 0x10
jmp 0x51dd0a
test ecx, ecx
je 0x51dd0a
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xf7
mov eax, dword [ebx + 0x74]
test eax, eax
jle 0x51dd21
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 0x51dd44
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x14]
push edx
push dword [esp + 0x24]
push 0x10
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x51dd77
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 0x51dd95
push edx
push ebx
push ecx
call fcn.005278f0
add esp, 0xc
jmp 0x51dd9e
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 0x51ddb9
push 1
push eax
push ebx
call fcn.004f5e50
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 0x51ddd4
push eax
push ebx
call fcn.004fef40
add esp, 8
mov ebx, dword [esp + 0x98]
mov dword [ebp + 0x30], 0
mov ecx, dword [ebx + 0xdc]
test ecx, ecx
jne 0x51ddf0
xor eax, eax
jmp 0x51de16
mov edx, dword [ebx + 8]
test ecx, ecx
jns 0x51ddfb
mov ecx, dword [edx + 0x74]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x57], 0
je 0x51de0a
mov eax, 0x973eec
jmp 0x51de13
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