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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
push esi
mov esi, ecx
mov dword [esp + 0x78], 0
push edi
mov eax, edx
mov dword [esp + 0x14], esi
xorps xmm0, xmm0
mov dword [esp + 0x68], eax
cmp dword [esi + 0x40], 0
mov edi, dword [esi]
mov dword [esp + 0x48], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x64], 0
movq qword [esp + 0xa8], xmm0
mov dword [esp + 0x1c], edi
jne 0x511af3
cmp byte [edi + 0x40], 0
jne 0x511af3
call fcn.004f5dc0
mov dword [esp + 0x10], eax
test eax, eax
je 0x511af3
mov ecx, dword [esi]
mov edx, dword [eax + 0x44]
call fcn.00504a90
mov edx, dword [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x60], eax
lea eax, [esp + 0xa0]
push eax
push dword [ebp + 8]
push 0x6e
call fcn.00510bc0
mov dword [esp + 0x68], eax
xor ecx, ecx
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, eax
cmp dword [eax + 0xc], ecx
setne cl
mov dword [esp + 0x50], ecx
mov ecx, esi
call fcn.004f1c30
test eax, eax
jne 0x511af3
push dword [esp + 0xa0]
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.004f5e50
add esp, 4
test eax, eax
jne 0x511af3
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x9c], eax
mov dword [ecx + 0x38], eax
inc eax
inc dword [esi + 0x44]
mov edx, dword [esi + 0x44]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
test byte [eax + 0x2c], 0x20
jne 0x51179f
mov dword [esp + 0x30], 0
jmp 0x5117ae
mov ecx, eax
call fcn.004effd0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
xor esi, esi
test ecx, ecx
je 0x5117f3
mov edi, dword [esp + 0x14]
jmp 0x5117c0
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x5117dd
cmp dword [esp + 0x30], 0
je 0x5117dd
mov eax, edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x2c], eax
mov dword [edx + 0x38], eax
inc dword [edi + 0x44]
inc esi
mov ecx, dword [ecx + 0x14]
mov edx, dword [edi + 0x44]
test ecx, ecx
jne 0x5117c0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
movsx eax, word [eax + 0x26]
mov ecx, edi
add eax, esi
lea edx, [eax*4 + 2]
add edx, esi
call fcn.004b9150
mov dword [esp + 0x48], eax
test eax, eax
je 0x511af3
mov edi, dword [esp + 0x10]
movsx ecx, word [edi + 0x26]
lea eax, [eax + ecx*4]
lea ecx, [eax + esi*4]
mov dword [esp + 0x94], eax
lea eax, [esi + 1]
mov dword [esp + 0x70], ecx
push eax
push 1
push ecx
mov dword [esp + 0x94], eax
call fcn.005594a0
mov eax, dword [esp + 0x7c]
add esp, 0xc
xor ecx, ecx
mov byte [eax + esi + 1], 0
xor eax, eax
cmp ax, word [edi + 0x26]
jge 0x511874
jmp 0x511860
mov eax, dword [esp + 0x48]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
movsx eax, word [edi + 0x26]
cmp ecx, eax
jl 0x511860
mov eax, dword [esp + 0x68]
xorps xmm0, xmm0
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
movdqa xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xb4], eax
xor al, al
cmp dword [ecx], 0
movdqa xmmword [esp + 0xc0], xmm0
mov dword [esp + 0xb0], edx
mov dword [esp + 0x34], eax
mov byte [esp + 0x27], al
mov dword [esp + 0x38], 0
jle 0x511b6b
xor esi, esi
mov dword [esp + 0x4c], esi
mov edx, dword [ecx + 4]
lea ecx, [esp + 0xb0]
mov edx, dword [esi + edx]
call fcn.004e5dd0
test eax, eax
jne 0x511af3
mov edx, dword [esp + 0x10]
xor edi, edi
movsx eax, word [edx + 0x26]
test eax, eax
jle 0x5119b0
mov eax, dword [ebp + 8]
mov edx, dword [edx + 4]
mov dword [esp + 0x6c], edx
mov ecx, dword [eax + 4]
mov eax, edx
add ecx, esi
mov dword [esp + 0x40], ecx
mov edx, dword [eax]
mov esi, dword [ecx + 4]
mov al, byte [edx]
test al, al
je 0x51192d
nop
movzx ecx, byte [esi]
movzx eax, al
mov al, byte [eax + 0x627bc0]
cmp al, byte [ecx + 0x627bc0]
jne 0x51192d
mov al, byte [edx + 1]
inc edx
inc esi
test al, al
jne 0x511910
movzx eax, byte [esi]
movzx ecx, byte [eax + 0x627bc0]
movzx eax, byte [edx]
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + 0x627bc0]
sub eax, ecx
je 0x511963
mov eax, dword [esp + 0x6c]
inc edi
movsx ecx, word [edx + 0x26]
add eax, 0x18
cmp edi, ecx
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x40]
jl 0x511904
jmp 0x5119ac
movsx eax, word [edx + 0x24]
cmp edi, eax
jne 0x51197c
mov eax, dword [esp + 0x40]
mov byte [esp + 0x27], 1
mov eax, dword [eax]
mov dword [esp + 0x74], eax
jmp 0x5119a1
cmp dword [esp + 0x30], 0
je 0x5119a1
mov ecx, dword [edx + 4]
lea eax, [edi + edi*2]
test byte [ecx + eax*8 + 0x17], 1
mov ecx, 1
mov eax, dword [esp + 0x34]
movzx eax, al
cmovne eax, ecx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
mov dword [ecx + edi*4], eax
mov esi, dword [esp + 0x4c]
movsx eax, word [edx + 0x26]
cmp edi, eax
jl 0x511a59
cmp dword [esp + 0x30], 0
jne 0x511acc
mov eax, dword [ebp + 8]
mov edx, str._ROWID_
mov eax, dword [eax + 4]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 4]
mov esi, edi
mov al, byte [edi]
test al, al
je 0x511a00
movzx ecx, byte [edx]
movzx eax, al
mov al, byte [eax + 0x627bc0]
cmp al, byte [ecx + 0x627bc0]
jne 0x511a00
mov al, byte [esi + 1]
inc esi
inc edx
test al, al
jne 0x5119e3
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x627bc0]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x627bc0]
sub eax, ecx
je 0x511a40
push str.ROWID
push edi
call fcn.004bb760
add esp, 8
test eax, eax
je 0x511a40
push 0x634bec
push edi
call fcn.004bb760
add esp, 8
test eax, eax
jne 0x511acc
mov eax, dword [esp + 0x18]
or edi, 0xffffffff
mov byte [esp + 0x27], 1
mov edx, str.ROWID
mov eax, dword [eax]
mov dword [esp + 0x74], eax
jmp 0x511a6d
test edi, edi
jns 0x511a64
mov edx, str.ROWID
jmp 0x511a6d
mov eax, dword [edx + 4]
lea ecx, [edi + edi*2]
mov edx, dword [eax + ecx*8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
add ecx, ecx
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
mov edx, 0x17
push dword [eax]
call fcn.004eed60
add esp, 0xc
cmp eax, 1
je 0x511af3
cmp eax, 2
jne 0x511aaa
mov eax, dword [esp + 0x48]
mov dword [eax + edi*4], 0xffffffff
mov esi, dword [esp + 0x38]
mov ecx, dword [ebp + 8]
inc esi
add dword [esp + 0x4c], 0x18
mov dword [esp + 0x38], esi
cmp esi, dword [ecx]
jge 0x511b5f
mov esi, dword [esp + 0x4c]
jmp 0x5118c3
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push dword [eax + ecx*8 + 4]
push str.no_such_column:__s
push esi
call fcn.004bb5f0
add esp, 0xc
mov byte [esi + 0x11], 1
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x511b12
mov eax, dword [esp + 0xa8]
mov dword [ecx + 0x1ec], eax
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x513498
test esi, esi
je 0x51348f
cmp dword [esi + 0x200], 0
je 0x513469
cmp ecx, dword [esi + 0x10c]
jb 0x513455
cmp ecx, dword [esi + 0x110]
jae 0x513455
mov ecx, dword [esi + 0x200]
movzx eax, word [esi + 0xf0]
add dword [ecx], eax
jmp 0x513498
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov cl, al
mov eax, dword [esp + 0x68]
add cl, byte [esp + 0x27]
mov byte [esp + 0x58], cl
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov eax, dword [edx]
test dword [eax + 0x18], 0x80000
je 0x511baa
mov edx, dword [esp + 0x48]
movzx eax, cl
mov ecx, edi
push eax
call fcn.004fba20
mov edx, dword [esp + 0x18]
add esp, 4
jmp 0x511bac
xor eax, eax
mov esi, dword [edi + 8]
xor ecx, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x3c], ecx
test esi, esi
je 0x511c50
cmp byte [esp + 0x58], 0
jne 0x511c1b
test eax, eax
jne 0x511c1b
cmp dword [esi + 0x24], eax
jne 0x511c1b
cmp esi, dword [esp + 0x30]
je 0x511c1b
movzx edi, word [esi + 0x32]
xor edx, edx
mov dword [esp + 0x18], eax
test edi, edi
jle 0x511c25
mov ecx, dword [esi + 4]
jmp 0x511bf0
mov edi, dword [esp + 0x48]
movsx eax, word [ecx]
cmp dword [edi + eax*4], 0
movzx edi, word [esi + 0x32]
jge 0x511c13
inc edx
add ecx, 2
cmp edx, edi
jl 0x511bf0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
jmp 0x511c25
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
inc dword [edx + 0x48]
mov eax, dword [edx + 0x48]
test eax, eax
jne 0x511c2e
mov edx, dword [esp + 0x70]
mov byte [ecx + edx + 1], 0
mov edx, dword [esp + 0x94]
mov dword [edx + ecx*4], eax
inc ecx
mov esi, dword [esi + 0x14]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
test esi, esi
jne 0x511bc1
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 8]
mov dword [esp + 0x38], edi
test edi, edi
jne 0x511d33
mov esi, dword [ecx]
mov edx, 0xd0
mov ecx, esi
call fcn.004b9150
mov edi, eax
mov dword [esp + 0x38], edi
test edi, edi
je 0x511cb7
push 0xd0
push 0
push edi
call fcn.005594a0
mov dword [edi], esi
add esp, 0xc
mov eax, dword [esi + 4]
test eax, eax
je 0x511c97
mov dword [eax + 0x30], edi
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], 0
mov dword [esi + 4], edi
mov dword [edi + 0x28], 0x26bceaa5
mov dword [edi + 0x18], ecx
jmp 0x511cc1
mov ecx, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [ecx + 8], edi
test edi, edi
je 0x511d16
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x511cde
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x511d12
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov word [eax + ecx*4], 0x9b
mov byte [eax + ecx*4 + 3], 0
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 ecx, dword [esp + 0x14]
cmp dword [ecx + 0x198], 0
jne 0x511d2b
mov eax, dword [ecx]
test byte [eax + 0x3c], 8
jne 0x511d2b
mov byte [ecx + 0x17], 1
test edi, edi
je 0x511af3
cmp byte [ecx + 0x12], 0
jne 0x511d3d
or dword [edi + 0x58], 0x10
mov eax, dword [ecx + 0x198]
mov esi, ecx
test eax, eax
mov edx, ecx
mov ecx, dword [esp + 0x60]
cmovne esi, eax
cmovne edx, eax
mov eax, 1
mov dword [esp + 0x6c], edx
shl eax, cl
mov dword [esp + 0x40], eax
mov ecx, dword [esi + 0x14c]
test ecx, eax
jne 0x511da2
or eax, ecx
mov ecx, dword [esp + 0x60]
mov dword [esi + 0x14c], eax
mov edx, ecx
mov eax, dword [esi]
add edx, edx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx*8 + 0xc]
mov eax, dword [eax]
mov dword [esi + ecx*4 + 0x150], eax
cmp ecx, 1
jne 0x511d9a
mov ecx, esi
call fcn.004f4700
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x10]
or dword [edx + 0x148], eax
or byte [edx + 0x14], 1
test byte [esi + 0x2c], 0x10
je 0x511dea
push dword [ebp + 0x10]
mov edx, dword [esp + 0x6c]
push dword [ebp + 0xc]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x50]
push dword [esp + 0x80]
push dword [ebp + 8]
push esi
call fcn.00513710
mov esi, dword [esp + 0x34]
add esp, 0x18
xor edi, edi
mov dword [esp + 0x68], edi
jmp 0x511afa
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x48]
inc eax
cmp byte [esp + 0x34], 0
mov dword [esp + 0x6c], eax
lea ecx, [eax + 1]
mov dword [esp + 0x78], ecx
mov dword [edx + 0x48], ecx
mov dword [esp + 0x44], ecx
jne 0x511e1a
cmp dword [esp + 0x5c], 0
jne 0x511e1a
mov eax, dword [esp + 0x54]
test eax, eax
je 0x511e31
lea eax, [ecx + 1]
mov dword [esp + 0xa4], eax
movsx eax, word [esi + 0x26]
add eax, ecx
mov dword [edx + 0x48], eax
mov eax, dword [esp + 0x54]
cmp byte [esp + 0x58], 0
jne 0x511e43
cmp dword [esp + 0x5c], 0
jne 0x511e43
test eax, eax
je 0x511e4d
inc dword [edx + 0x48]
mov eax, dword [edx + 0x48]
mov dword [esp + 0x78], eax
mov ecx, dword [edx + 0x48]
lea eax, [ecx + 1]
mov dword [esp + 0x60], eax
movsx eax, word [esi + 0x26]
mov esi, dword [ebp + 0xc]
add eax, ecx
cmp dword [esp + 0x50], 0
mov dword [edx + 0x48], eax
je 0x511e9d
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + 0x1ec]
push dword [esp + 0x2c]
mov dword [esp + 0xac], eax
mov eax, dword [ecx]
mov dword [esp + 0xb0], edx
mov dword [edx + 0x1ec], eax
mov edx, ecx
mov ecx, dword [esp + 0x18]
push esi
call fcn.004f5ee0
add esp, 8
mov edx, esi
lea ecx, [esp + 0xb0]
call fcn.004e5dd0
test eax, eax
jne 0x51344a
mov eax, dword [esp + 0x10]
test byte [eax + 0x2c], 0x20
jne 0x511fc8
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x511ed7
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x511f0b
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x80]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
push 4
push 0
push 0
push dword [ebp + 0xc]
call fcn.0051dc50
mov esi, eax
add esp, 0x14
test esi, esi
je 0x511af3
movzx eax, byte [esi + 0x26]
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x40], ecx
cmp dword [eax + 0x54], ecx
jg 0x511f6c
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x511fa2
mov ecx, dword [esp + 0x40]
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x64
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x511fa6
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x4c], 0
jne 0x511fc1
push edx
push dword [esp + 0x70]
mov edx, 0x7d
mov ecx, edi
call fcn.004d5260
add esp, 8
mov ecx, esi
jmp 0x51220a
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
movzx eax, word [eax + 0x32]
mov ecx, dword [esi + 0x48]
cwde
mov dword [esp + 0x28], eax
inc eax
add eax, ecx
mov dword [esi + 0x48], eax
lea edx, [ecx + 1]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x84], eax
inc eax
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x3c], edx
cmp dword [eax + 0x54], esi
jg 0x512015
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x512045
mov edx, dword [esp + 0x3c]
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
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 [edi + 0x18]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x40], esi
cmp dword [eax + 0x54], esi
jg 0x512069
mov ecx, edi
call fcn.004d50b0
test eax, eax
je 0x512069
mov dword [esp + 0x40], 1
jmp 0x5120a0
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x84]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x37
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
call fcn.004d59b0
push dword [esp + 0x80]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
push 4
push 0
push 0
push dword [ebp + 0xc]
call fcn.0051dc50
add esp, 0x14
mov dword [esp + 0x20], eax
test eax, eax
je 0x511af3
mov ecx, dword [eax + 0x3c]
xor esi, esi
mov dword [esp + 0x8c], ecx
mov ecx, dword [eax + 0x40]
movzx eax, byte [eax + 0x26]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
test eax, eax
jle 0x51212e
lea esp, [esp]
mov eax, dword [esp + 0x3c]
mov ecx, edi
mov edx, dword [esp + 0x10]
add eax, esi
push eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
movsx eax, word [eax + esi*2]
push eax
push dword [esp + 0x34]
call fcn.004e9190
mov eax, dword [esp + 0x34]
inc esi
add esp, 0xc
cmp esi, eax
jl 0x512100
cmp dword [esp + 0x4c], 0
je 0x51218c
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x512177
mov eax, dword [esp + 0x40]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 0x10]
movsx edx, byte [ecx + eax*4 + 1]
lea esi, [ecx + eax*4]
mov ecx, dword [edi]
call fcn.004d57a0
xorps xmm0, xmm0
add esp, 4
movdqu xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0x9c
mov eax, dword [edi + 0x20]
dec eax
cmp dword [esp + 0x40], eax
jne 0x512177
mov dword [edi + 0x20], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x98], edx
mov dword [esp + 0x64], eax
jmp 0x512206
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ecx, edi
call fcn.004fc8a0
mov edx, dword [esp + 0x30]
add esp, 4
mov ecx, edi
push eax
push dword [esp + 0x6c]
push edx
push dword [esp + 0x4c]
mov edx, 0x30
call fcn.004d52d0
mov eax, dword [edi + 0x18]
add esp, 0x14
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x5121cf
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x512206
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x84]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x64]
mov word [eax + ecx*4], 0x6b
mov byte [eax + ecx*4 + 3], 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 + 0x20]
call fcn.0051e570
mov eax, dword [esp + 0x1c]
test byte [eax + 0x18], 0x80
je 0x512280
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x19c], 0
jne 0x512280
inc dword [eax + 0x48]
mov eax, dword [eax + 0x48]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x90], eax
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x54], esi
jg 0x512249
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x512280
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x90]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
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 esi, dword [edi + 0x18]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x28], ecx
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x5122d8
mov eax, dword [esi]
mov edx, dword [esi + 0x70]
mov dword [esp + 0x40], eax
lea eax, [ecx*8 + 4]
mov ecx, dword [esp + 0x40]
push eax
mov dword [esp + 0x24], edx
call fcn.004b91d0
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x5122d1
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
call fcn.004b8f10
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x70]
test eax, eax
je 0x5122e6
mov dword [eax + ecx*4], 0xffffffff
or esi, 0xffffffff
sub esi, ecx
cmp dword [esp + 0x50], 0
mov dword [esp + 0x3c], esi
jne 0x512390
cmp dword [ebp + 0x10], 5
je 0x51231f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
je 0x512338
jmp 0x512310
cmp byte [eax + 0x36], 5
je 0x51231f
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x512310
jmp 0x512338
push dword [esp + 0x88]
push 1
push dword [esp + 0x78]
call fcn.005594a0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x4c], 0
je 0x512371
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x9c]
test eax, eax
js 0x51235f
mov edi, dword [esp + 0x70]
sub eax, edx
mov byte [eax + edi], 0
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
test eax, eax
js 0x512371
sub eax, edx
mov edx, dword [esp + 0x70]
mov byte [eax + edx], 0
push 0
push 0
push dword [esp + 0x78]
mov edx, ecx
mov ecx, dword [esp + 0x20]
push dword [esp + 0xa8]
push 0x35
call fcn.004fff90
add esp, 0x14
cmp dword [esp + 0x4c], 0
je 0x51242a
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x2c]
cmp byte [eax + ecx], 0
je 0x5123cc
push dword [esp + 0x98]
mov edx, 0x41
push dword [esp + 0x68]
push esi
push ecx
mov ecx, edi
call fcn.004d5440
add esp, 0x10
mov eax, dword [edi + 0x18]
mov dword [esp + 0x28], esi
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x5123ea
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x5125ac
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
cmp dword [esp + 0x30], 0
mov edx, dword [esp + 0x3c]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x44]
mov word [ecx], 0x4c
cmovne eax, dword [esp + 0x64]
mov byte [ecx + 3], 0
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
jmp 0x5125ac
cmp dword [esp + 0x30], 0
je 0x51250a
mov ecx, edi
call fcn.004d54f0
mov ecx, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x54], esi
jg 0x512456
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x51248d
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x84]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov word [eax + ecx*4], 0x69
mov byte [eax + ecx*4 + 3], 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 [edi + 0x18]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x7c], esi
cmp dword [eax + 0x54], esi
jg 0x5124b1
mov ecx, edi
call fcn.004d50b0
test eax, eax
je 0x5124b1
mov dword [esp + 0x7c], 1
jmp 0x5124e8
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x84]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x64]
mov word [eax + ecx*4], 0x62
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push dword [esp + 0x68]
mov edx, 0x41
mov ecx, edi
push dword [esp + 0x30]
push dword [esp + 0x38]
call fcn.004d5440
add esp, 0x10
jmp 0x5125ac
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x28], esi
cmp dword [eax + 0x54], esi
jg 0x51252e
mov ecx, edi
call fcn.004d50b0
test eax, eax
je 0x51252e
mov dword [esp + 0x28], 1
jmp 0x512562
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x6c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x7e
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x512578
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x5125ac
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x43
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x27], 0
je 0x512611
push dword [esp + 0x78]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
call fcn.004ea810
mov eax, dword [edi + 0x18]
add esp, 4
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x5125dd
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x512611
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x78]
mov word [eax + ecx*4], 0x26
mov byte [eax + ecx*4 + 3], 0
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
cmp byte [esp + 0x34], 0
jne 0x51270a
cmp dword [esp + 0x54], 0
jne 0x512715
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x5127c7
xor ecx, ecx
mov dword [esp + 0x34], ecx
push dword [ebp + 0x10]
mov edx, dword [esp + 0x60]
push dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 3
push 0
push dword [ebp + 8]
call fcn.005114a0
mov ecx, dword [esp + 0x48]
xor edx, edx
or ecx, eax
add esp, 0x14
mov eax, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 0x34], ecx
cmp dx, word [eax + 0x26]
jge 0x51276b
mov dword [esp + 0x74], edx
cmp ecx, 0xffffffff
je 0x51272b
cmp esi, 0x20
jge 0x512698
mov eax, 1
mov ecx, esi
shl eax, cl
test dword [esp + 0x34], eax
jne 0x51272b
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
test byte [eax + edx + 0x17], 1
jne 0x51272b
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x54], ecx
jg 0x5126d0
mov ecx, edi
call fcn.004d50b0
mov edx, dword [esp + 0x74]
test eax, eax
jne 0x51274f
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
inc dword [edi + 0x20]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0xa4]
add eax, esi
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
jmp 0x51274f
cmp dword [esp + 0x54], 0
je 0x512633
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
call fcn.004fb920
mov dword [esp + 0x34], eax
jmp 0x512639
mov eax, dword [esp + 0xa4]
mov ecx, edi
mov edx, dword [esp + 0x10]
add eax, esi
push eax
push esi
push dword [esp + 0x34]
call fcn.004e9190
mov edx, dword [esp + 0x80]
add esp, 0xc
mov eax, dword [esp + 0x10]
inc esi
mov ecx, dword [esp + 0x34]
add edx, 0x18
mov dword [esp + 0x74], edx
movsx eax, word [eax + 0x26]
cmp esi, eax
jl 0x512677
cmp byte [esp + 0x27], 0
jne 0x5127c3
cmp dword [esp + 0x30], 0
jne 0x5127c3
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x51278f
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x5127c3
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x78]
mov word [eax + ecx*4], 0x21
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x5c]
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x14]
push 1
push 1
push dword [ebp + 8]
call fcn.005114a0
mov ecx, dword [esp + 0x24]
mov edx, eax
xor eax, eax
mov dword [esp + 0x9c], edx
add esp, 0x14
xor esi, esi
cmp ax, word [ecx + 0x26]
jge 0x512976
lea esp, [esp]
movsx eax, word [ecx + 0x24]
cmp esi, eax
jne 0x5128a1
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x54], eax
jg 0x51289c
mov eax, dword [ecx + 0x54]
test eax, eax
je 0x51282d
add eax, eax
jmp 0x512832
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [ecx]
shl eax, 2
push eax
call fcn.004b91d0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x51295e
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
cmp eax, dword [ecx + 0x10c]
jb 0x512871
cmp eax, dword [ecx + 0x110]
jae 0x512871
movzx ecx, word [ecx + 0xf0]
jmp 0x51287d
push eax
call dword [0x67daa0]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x18]
shr edx, 4
mov dword [eax + 0x54], edx
mov eax, dword [esp + 0x20]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x8c]
lea ecx, [eax + eax*4]
jmp 0x512910
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + esi*4]
test ecx, ecx
js 0x5128d0
mov eax, dword [esp + 0x60]
add eax, esi
push eax
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [edx + eax*8]
call fcn.004ea810
add esp, 4
jmp 0x51295e
test dword [esp + 0xa0], 1
je 0x512944
cmp esi, 0x1f
jg 0x512944
mov eax, 1
mov ecx, esi
shl eax, cl
test edx, eax
jne 0x512944
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x54], ecx
jg 0x51290d
mov ecx, edi
call fcn.004d50b0
test eax, eax
jne 0x51295e
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
inc dword [edi + 0x20]
mov word [eax + ecx*4], 0x1c
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x60]
mov dword [ecx + 4], 0
add eax, esi
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
jmp 0x51295e
mov eax, dword [esp + 0x60]
mov ecx, edi
mov edx, dword [esp + 0x10]
add eax, esi
push eax
push esi
push dword [esp + 0x34]
call fcn.004e9190
add esp, 0xc
mov ecx, dword [esp + 0x10]
inc esi
mov edx, dword [esp + 0x88]
movsx eax, word [ecx + 0x26]
cmp esi, eax
jl 0x512800
test byte [esp + 0xa0], 1
je 0x512b09
push dword [esp + 0x60]
mov edx, ecx
mov ecx, edi
call fcn.004fc920
mov eax, dword [esp + 0x60]
add esp, 4
mov esi, eax
test eax, eax
je 0x5129e2
mov edi, dword [esp + 0x28]
cmp byte [esi + 8], 0x6e
jne 0x5129d7
cmp byte [esi + 9], 1
jne 0x5129d7
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
call fcn.00510ad0
test eax, eax
je 0x5129d7
mov ecx, dword [esp + 0x14]
mov edx, esi
push edi
push dword [ebp + 0x10]
push dword [esp + 0x4c]
push dword [esp + 0x1c]
call fcn.005112e0
add esp, 0x10
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x5129a2
mov edi, dword [esp + 0x38]
cmp dword [esp + 0x30], 0
je 0x512a10
push dword [esp + 0x98]
mov edx, 0x41
mov ecx, edi
push dword [esp + 0x68]
push dword [esp + 0x30]
push dword [esp + 0x38]
call fcn.004d5440
add esp, 0x10
jmp 0x512ac4
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x54], eax
jg 0x512a90
mov eax, dword [ecx + 0x54]
test eax, eax
je 0x512a2e
add eax, eax
jmp 0x512a33
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [ecx]
shl eax, 2
push eax
call fcn.004b91d0
mov esi, eax
add esp, 4
test esi, esi
je 0x512ac4
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp esi, dword [eax + 0x10c]
jb 0x512a6c
cmp esi, dword [eax + 0x110]
jae 0x512a6c
movzx ecx, word [eax + 0xf0]
jmp 0x512a78
push esi
call dword [0x67daa0]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x18]
shr edx, 4
mov dword [eax + 0x54], edx
mov eax, dword [esp + 0x20]
mov dword [edi + 4], esi
inc dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x43
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x10]
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 0x26]
jge 0x512b09
mov eax, dword [esp + 0x48]
cmp dword [eax + esi*4], 0
jge 0x512b00
movsx eax, word [ecx + 0x24]
cmp esi, eax
je 0x512b00
mov eax, dword [esp + 0x60]
mov edx, ecx
add eax, esi
mov ecx, edi
push eax
push esi
push dword [esp + 0x34]
call fcn.004e9190
mov ecx, dword [esp + 0x1c]
add esp, 0xc
movsx eax, word [ecx + 0x26]
inc esi
cmp esi, eax
jl 0x512ad2
cmp dword [esp + 0x50], 0
mov esi, dword [esp + 0x14]
jne 0x512e2c
lea eax, [esp + 0x50]
mov dword [esp + 0x34], 0
push eax
push dword [esp + 0x2c]
mov edx, ecx
mov dword [esp + 0x58], 0
push dword [ebp + 0x10]
mov ecx, esi
push dword [esp + 0x64]
push dword [esp + 0x54]
push dword [esp + 0x8c]
push dword [esp + 0x98]
push dword [esp + 0x48]
push dword [esp + 0xb4]
call fcn.004fe810
add esp, 0x24
cmp dword [esp + 0x54], 0
je 0x512b86
movzx eax, byte [esp + 0x58]
mov ecx, esi
mov edx, dword [esp + 0x10]
push eax
push dword [esp + 0x4c]
push 0
push dword [esp + 0x50]
call fcn.004fb400
add esp, 0x10
cmp dword [esp + 0x50], 0
jne 0x512b98
cmp byte [esp + 0x58], 0
je 0x512c81
mov esi, dword [esp + 0x30]
test esi, esi
je 0x512bc9
push dword [esp + 0x98]
mov edx, 0x41
mov ecx, edi
push dword [esp + 0x68]
push 0
push dword [esp + 0x38]
call fcn.004d5440
add esp, 0x10
mov dword [esp + 0x34], eax
jmp 0x512c85
mov ecx, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x54], esi
jg 0x512c4d
mov eax, dword [ecx + 0x54]
test eax, eax
je 0x512be7
add eax, eax
jmp 0x512bec
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [ecx]
shl eax, 2
push eax
call fcn.004b91d0
mov esi, eax
add esp, 4
test esi, esi
je 0x512cdc
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp esi, dword [eax + 0x10c]
jb 0x512c29
cmp esi, dword [eax + 0x110]
jae 0x512c29
movzx ecx, word [eax + 0xf0]
jmp 0x512c35
push esi
call dword [0x67daa0]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x18]
shr edx, 4
mov dword [eax + 0x54], edx
mov dword [edi + 4], esi
mov esi, dword [esp + 0x34]
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov word [eax + ecx*4], 0x43
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x30]
push dword [esp + 0x94]
mov edx, dword [esp + 0x14]
push dword [esp + 0x84]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x34]
call fcn.004f6ce0
add esp, 0xc
cmp dword [esp + 0x54], 0
jne 0x512cbe
mov al, byte [esp + 0x58]
test al, al
jne 0x512cbe
test esi, esi
je 0x512d81
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x54], eax
jg 0x512d49
mov eax, dword [ecx + 0x54]
test eax, eax
je 0x512ce7
add eax, eax
jmp 0x512cec
mov eax, 1
mov dword [esp + 0x34], eax
jmp 0x512c81
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [ecx]
shl eax, 2
push eax
call fcn.004b91d0
mov esi, eax
add esp, 4
test esi, esi
je 0x512d7d
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp esi, dword [eax + 0x10c]
jb 0x512d25
cmp esi, dword [eax + 0x110]
jae 0x512d25
movzx ecx, word [eax + 0xf0]
jmp 0x512d31
push esi
call dword [0x67daa0]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x18]
shr edx, 4
mov dword [eax + 0x54], edx
mov eax, dword [esp + 0x20]
mov dword [edi + 4], esi
inc dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x4a
mov byte [eax + ecx*4 + 3], 0
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 al, byte [esp + 0x58]
cmp dword [esp + 0x50], 0
jne 0x512d8c
test al, al
je 0x512daf
mov edx, dword [edi + 0x20]
mov eax, dword [esp + 0x34]
cmp edx, eax
jbe 0x512da1
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 8], edx
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
dec ecx
mov dword [eax + 0x58], ecx
mov al, byte [esp + 0x58]
cmp dword [esp + 0x54], 0
mov esi, dword [esp + 0x14]
je 0x512dd9
mov edx, dword [esp + 0x10]
mov ecx, esi
movzx eax, al
push eax
push dword [esp + 0x4c]
push dword [esp + 0x80]
push 0
call fcn.004fb400
add esp, 0x10
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0
push 0
push 1
push dword [esp + 0xa0]
push dword [esp + 0x88]
push dword [esp + 0x94]
push dword [esp + 0x44]
call fcn.004ffc70
add esp, 0x1c
cmp dword [esp + 0x54], 0
je 0x512e2c
movzx eax, byte [esp + 0x58]
mov ecx, esi
mov edx, dword [esp + 0x10]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [ebp + 8]
call fcn.004fc590
add esp, 0x10
mov eax, dword [esp + 0x1c]
test byte [eax + 0x18], 0x80
je 0x512efe
cmp dword [esi + 0x19c], 0
jne 0x512efe
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x54], eax
jg 0x512ec7
mov eax, dword [ecx + 0x54]
test eax, eax
je 0x512e65
add eax, eax
jmp 0x512e6a
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [ecx]
shl eax, 2
push eax
call fcn.004b91d0
mov esi, eax
add esp, 4
test esi, esi
je 0x512efe
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp esi, dword [eax + 0x10c]
jb 0x512ea3
cmp esi, dword [eax + 0x110]
jae 0x512ea3
movzx ecx, word [eax + 0xf0]
jmp 0x512eaf
push esi
call dword [0x67daa0]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x18]
shr edx, 4
mov dword [eax + 0x54], edx
mov eax, dword [esp + 0x20]
mov dword [edi + 4], esi
inc dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x90]
mov word [eax + ecx*4], 0x25
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x512f50
mov edi, dword [esp + 0x28]
lea ebx, [ebx]
cmp byte [esi + 8], 0x6e
jne 0x512f45
cmp byte [esi + 9], 2
jne 0x512f45
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
call fcn.00510ad0
test eax, eax
je 0x512f45
mov ecx, dword [esp + 0x14]
mov edx, esi
push edi
push dword [ebp + 0x10]
push dword [esp + 0x4c]
push dword [esp + 0x1c]
call fcn.005112e0
add esp, 0x10
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x512f10
mov edi, dword [esp + 0x38]
cmp dword [esp + 0x4c], 0
jne 0x5130e1
cmp dword [esp + 0x30], 0
je 0x51302d
mov esi, dword [edi + 0x18]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x28]
js 0x512f7f
mov edx, dword [esi + 0x70]
test edx, edx
je 0x512f7f
mov eax, dword [edi + 0x20]
mov dword [edx + ecx*4], eax
mov eax, dword [edi + 0x20]
dec eax
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x54], eax
jg 0x51300a
mov eax, dword [ecx + 0x54]
test eax, eax
je 0x512fa4
add eax, eax
jmp 0x512fa9
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [ecx]
shl eax, 2
push eax
call fcn.004b91d0
mov esi, eax
add esp, 4
test esi, esi
je 0x5130e1
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp esi, dword [eax + 0x10c]
jb 0x512fe6
cmp esi, dword [eax + 0x110]
jae 0x512fe6
movzx ecx, word [eax + 0xf0]
jmp 0x512ff2
push esi
call dword [0x67daa0]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x18]
shr edx, 4
mov dword [eax + 0x54], edx
mov eax, dword [esp + 0x20]
mov dword [edi + 4], esi
inc dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x84]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x7c]
mov word [eax + ecx*4], 9
jmp 0x5130c8
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x54], eax
jg 0x5130ad
mov eax, dword [ecx + 0x54]
test eax, eax
je 0x51304b
add eax, eax
jmp 0x513050
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [ecx]
shl eax, 2
push eax
call fcn.004b91d0
mov esi, eax
add esp, 4
test esi, esi
je 0x5130e1
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp esi, dword [eax + 0x10c]
jb 0x513089
cmp esi, dword [eax + 0x110]
jae 0x513089
movzx ecx, word [eax + 0xf0]
jmp 0x513095
push esi
call dword [0x67daa0]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x18]
shr edx, 4
mov dword [eax + 0x54], edx
mov eax, dword [esp + 0x20]
mov dword [edi + 4], esi
inc dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov byte [eax + ecx*4 + 3], 0
mov edx, dword [edi + 0x18]
or esi, 0xffffffff
sub esi, dword [esp + 0x3c]
js 0x5130fa
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x5130fa
mov eax, dword [edi + 0x20]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 0x20]
dec eax
mov dword [edx + 0x58], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov dword [esp + 0x7c], edx
test edx, edx
je 0x513212
mov eax, dword [esp + 0x80]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
inc eax
mov dword [esp + 0x50], eax
lea esp, [esp]
cmp byte [eax], 0
je 0x5131f9
mov esi, dword [edi + 0x18]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x54], eax
jg 0x5131b7
mov eax, dword [esi + 0x54]
test eax, eax
je 0x513153
add eax, eax
jmp 0x513158
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
shl eax, 2
push eax
call fcn.004b91d0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x5131ed
mov ecx, dword [esi]
cmp eax, dword [ecx + 0x10c]
jb 0x51318f
cmp eax, dword [ecx + 0x110]
jae 0x51318f
movzx ecx, word [ecx + 0xf0]
jmp 0x51319b
push eax
call dword [0x67daa0]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x20]
shr edx, 4
mov dword [esi + 0x54], edx
mov edx, dword [esp + 0x7c]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
inc dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x38]
mov word [eax + ecx*4], 0x3a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x5131f1
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x50]
mov edx, dword [edx + 0x14]
inc eax
inc ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], ecx
test edx, edx
jne 0x513130
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x2c], eax
jge 0x5132d1
mov esi, dword [edi + 0x18]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x54], eax
jg 0x51329d
mov eax, dword [esi + 0x54]
test eax, eax
je 0x51323d
add eax, eax
jmp 0x513242
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
shl eax, 2
push eax
call fcn.004b91d0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x5132d1
mov ecx, dword [esi]
cmp eax, dword [ecx + 0x10c]
jb 0x513279
cmp eax, dword [ecx + 0x110]
jae 0x513279
movzx ecx, word [ecx + 0xf0]
jmp 0x513285
push eax
call dword [0x67daa0]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x20]
shr edx, 4
mov dword [esi + 0x54], edx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
inc dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x3a
mov byte [eax + ecx*4 + 3], 0
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 [esp + 0x14]
cmp byte [eax + 0x12], 0
jne 0x5132ef
cmp dword [eax + 0x19c], 0
jne 0x5132ef
mov ecx, eax
call fcn.004fcfe0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
test byte [esi + 0x18], 0x80
je 0x511af7
cmp dword [eax + 0x19c], 0
jne 0x511af7
cmp byte [eax + 0x12], 0
jne 0x511af7
mov esi, dword [edi + 0x18]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x54], eax
jg 0x51338e
mov eax, dword [esi + 0x54]
test eax, eax
je 0x51332e
add eax, eax
jmp 0x513333
mov eax, 0x33
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
mov ecx, dword [esi]
shl eax, 2
push eax
call fcn.004b91d0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x5133c5
mov ecx, dword [esi]
cmp eax, dword [ecx + 0x10c]
jb 0x51336a
cmp eax, dword [ecx + 0x110]
jae 0x51336a
movzx ecx, word [ecx + 0xf0]
jmp 0x513376
push eax
call dword [0x67daa0]
add esp, 4
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [esp + 0x20]
shr edx, 4
mov dword [esi + 0x54], edx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
inc dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x90]
mov word [eax + ecx*4], 0x23
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, 1
mov ecx, edi
call fcn.004d6a80
mov eax, dword [edi]
cmp byte [eax + 0x40], 0
jne 0x511af3
mov edi, dword [edi + 0x10]
mov eax, dword [edi]
test eax, eax
je 0x5133eb
mov eax, dword [eax + 0x58]
jmp 0x5133f0
mov eax, 0x3b9aca00
xor esi, esi
test eax, eax
js 0x513404
cmp byte [esi + str.rows_updated], 0
je 0x513404
inc esi
cmp esi, eax
jle 0x5133f6
xor eax, eax
mov ecx, edi
cmp eax, 0x4b8e60
jne 0x513422
call fcn.004d4250
mov dword [edi + 0x24], str.rows_updated
mov eax, 0x202
jmp 0x51342c
call fcn.004d4250
mov eax, 0xa02
mov dword [edi + 0x20], 0
mov dword [edi + 4], str.rows_updated
mov dword [edi + 0x18], esi
mov word [edi + 0x1c], ax
mov byte [edi + 0x1e], 1
jmp 0x511af3
mov edi, esi
mov esi, dword [esp + 0x1c]
jmp 0x511afa
push ecx
call dword [0x67daa0]
mov ecx, dword [esi + 0x200]
add esp, 4
add dword [ecx], eax
jmp 0x513498
cmp ecx, dword [esi + 0x10c]
jb 0x51348f
cmp ecx, dword [esi + 0x110]
jae 0x51348f
mov eax, dword [esi + 0x108]
mov dword [ecx], eax
dec dword [esi + 0xf4]
mov dword [esi + 0x108], ecx
jmp 0x513498
push ecx
call fcn.004b8e70
add esp, 4
mov edx, dword [esp + 0x68]
mov ecx, esi
call fcn.004f4140
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.004e7ac0
test edi, edi
je 0x513705
test dword [edi + 4], 0x4000
jne 0x51366b
mov edx, dword [edi + 0xc]
mov ecx, esi
call fcn.004e6e10
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.004e6e10
test dword [edi + 4], 0x10000
je 0x51355b
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x51355b
test esi, esi
je 0x513552
cmp dword [esi + 0x200], 0
je 0x51352c
cmp ecx, dword [esi + 0x10c]
jb 0x513518
cmp ecx, dword [esi + 0x110]
jae 0x513518
mov ecx, dword [esi + 0x200]
movzx eax, word [esi + 0xf0]
add dword [ecx], eax
jmp 0x51355b
push ecx
call dword [0x67daa0]
mov ecx, dword [esi + 0x200]
add esp, 4
add dword [ecx], eax
jmp 0x51355b
cmp ecx, dword [esi + 0x10c]
jb 0x513552
cmp ecx, dword [esi + 0x110]
jae 0x513552
mov eax, dword [esi + 0x108]
mov dword [ecx], eax
dec dword [esi + 0xf4]
mov dword [esi + 0x108], ecx
jmp 0x51355b
push ecx
call fcn.004b8e70
add esp, 4
test dword [edi + 4], 0x800
je 0x5136ae
mov esi, dword [edi + 0x14]
test esi, esi
je 0x513667
mov edx, dword [esi]
mov ecx, dword [esp + 0x1c]
call fcn.004e7ac0
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0x1c]
call fcn.004f4140
mov edx, dword [esi + 0x24]
mov ecx, dword [esp + 0x1c]
call fcn.004e6e10
mov edx, dword [esi + 0x28]
mov ecx, dword [esp + 0x1c]
call fcn.004e7ac0
mov edx, dword [esi + 0x2c]
mov ecx, dword [esp + 0x1c]
call fcn.004e6e10
mov edx, dword [esi + 0x30]
mov ecx, dword [esp + 0x1c]
call fcn.004e7ac0
mov edx, dword [esi + 0x34]
mov ecx, dword [esp + 0x1c]
call fcn.00505570
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x1c]
call fcn.004e6e10
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x1c]
call fcn.004e6e10
mov edx, dword [esi + 0x44]
mov ecx, dword [esp + 0x1c]
call fcn.004f53d0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x51365e
cmp dword [ecx + 0x200], 0
je 0x513636
cmp esi, dword [ecx + 0x10c]
jb 0x51361e
cmp esi, dword [ecx + 0x110]
jae 0x51361e
mov esi, ecx
mov ecx, dword [esi + 0x200]
movzx eax, word [esi + 0xf0]
add dword [ecx], eax
jmp 0x51366b
push esi
call dword [0x67daa0]
mov esi, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esi + 0x200]
add dword [ecx], eax
jmp 0x51366b
cmp esi, dword [ecx + 0x10c]
jb 0x51365e
cmp esi, dword [ecx + 0x110]
jae 0x51365e
mov eax, dword [ecx + 0x108]
mov dword [esi], eax
mov dword [ecx + 0x108], esi
mov esi, ecx
dec dword [esi + 0xf4]
jmp 0x51366b
push esi
call fcn.004b8e70
add esp, 4
mov esi, dword [esp + 0x1c]
test dword [edi + 4], 0x8000
jne 0x513705
test esi, esi
je 0x5136fc
cmp dword [esi + 0x200], 0
je 0x5136d2
cmp edi, dword [esi + 0x10c]
jb 0x5136ba
cmp edi, dword [esi + 0x110]
jae 0x5136ba
mov ecx, dword [esi + 0x200]
movzx eax, word [esi + 0xf0]
add dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x14]
mov ecx, esi
call fcn.004e7ac0
jmp 0x51366b
push edi
call dword [0x67daa0]
mov ecx, dword [esi + 0x200]
add esp, 4
add dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, dword [esi + 0x10c]
jb 0x5136fc
cmp edi, dword [esi + 0x110]
jae 0x5136fc
mov eax, dword [esi + 0x108]
mov dword [edi], eax
dec dword [esi + 0xf4]
mov dword [esi + 0x108], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.004b8e70
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret