Function at 0x4068d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x7cdffc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x410], edx
push 0x400
push edi
push eax
mov dword [ebp - 0x414], ecx
xor esi, esi
mov dword [ebp - 0x40c], edi
call fcn.006e6ec0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, 1
jne 0x406a34
push dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push str.select_mileage.cn__mileage.en_from_mileage_WHERE_mileage.id___d
push eax
call fcn.00407ae0
mov ecx, dword [ebp - 0x414]
lea eax, [ebp - 0x40c]
add esp, 0xc
lea edx, [ebp - 0x408]
push edi
push eax
push edi
push 1
push 0xffffffffffffffff
call fcn.005038c0
add esp, 0x14
mov esi, eax
push dword [ebp - 0x40c]
test esi, esi
jne 0x406f44
call fcn.004d6c20
mov esi, eax
add esp, 4
cmp esi, 0x64
jne 0x406f19
lea edi, [ebx + 0x204]
nop dword [eax]
nop dword [eax + eax]
push 0
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x4069d3
push 0
push dword [ebp - 0x40c]
call fcn.004d7670
mov edx, edi
add esp, 8
sub edx, eax
nop dword [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 0x202], cx
test cx, cx
jne 0x4069c0
push 1
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x406a10
push 1
push dword [ebp - 0x40c]
call fcn.004d7670
mov edx, edi
add esp, 8
sub edx, eax
nop dword [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x406a00
push dword [ebp - 0x40c]
add edi, 0x404
call fcn.004d6c20
mov esi, eax
add esp, 4
cmp esi, 0x64
je 0x406990
jmp 0x406f19
cmp eax, 2
jne 0x406c2e
push dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push str.SELECT_na.cn__na.en__nb.cn__nb.en_nFROM_nmileage_AS_a_nINNER_JOIN_mileage_AS_b_ON_b.upper__a.id_nWHERE_nb.id___d
push eax
call fcn.00407ae0
mov ecx, dword [ebp - 0x414]
lea eax, [ebp - 0x40c]
add esp, 0xc
lea edx, [ebp - 0x408]
push 0
push eax
push 0
push 1
push 0xffffffffffffffff
call fcn.005038c0
add esp, 0x14
mov esi, eax
push dword [ebp - 0x40c]
test esi, esi
jne 0x406f44
call fcn.004d6c20
mov esi, eax
add esp, 4
cmp esi, 0x64
jne 0x406f19
add ebx, 0x204
push 0
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x406ae3
push 0
push dword [ebp - 0x40c]
call fcn.004d7670
mov edx, ebx
add esp, 8
sub edx, eax
nop dword [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 0x202], cx
test cx, cx
jne 0x406ad0
push 1
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x406b20
push 1
push dword [ebp - 0x40c]
call fcn.004d7670
mov edx, ebx
add esp, 8
sub edx, eax
nop dword [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x406b10
push 2
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x406b9a
lea edi, [ebx - 0x200]
lea ecx, [edi - 2]
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406b40
mov eax, dword [0x783764]
mov dword [ecx], eax
mov eax, dword [0x783768]
push 2
push dword [ebp - 0x40c]
mov dword [ecx + 4], eax
call fcn.004d7670
mov edx, eax
add esp, 8
mov esi, edx
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406b70
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406b80
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 3
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x406c0a
lea ecx, [ebx - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406bb1
mov eax, dword [0x783764]
mov dword [ecx], eax
mov eax, dword [0x783768]
push 3
push dword [ebp - 0x40c]
mov dword [ecx + 4], eax
call fcn.004d7670
mov edx, eax
add esp, 8
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406be0
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406bf0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x40c]
add ebx, 0x404
call fcn.004d6c20
mov esi, eax
add esp, 4
cmp esi, 0x64
je 0x406aa3
jmp 0x406f19
cmp eax, 3
jne 0x406f43
push dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push str.SELECT_na.cn__na.en__nb.cn__nb.en__nc.cn__nc.en_nFROM_nmileage_AS_a_nINNER_JOIN_mileage_AS_b_ON_b.upper__a.id_nINNER_JOIN_mileage_AS_c_ON_c.upper__b.id_nWHERE_nc.id___d
push eax
call fcn.00407ae0
mov ecx, dword [ebp - 0x414]
lea eax, [ebp - 0x40c]
add esp, 0xc
lea edx, [ebp - 0x408]
push 0
push eax
push 0
push 1
push 0xffffffffffffffff
call fcn.005038c0
add esp, 0x14
mov esi, eax
push dword [ebp - 0x40c]
test esi, esi
jne 0x406f44
call fcn.004d6c20
mov esi, eax
add esp, 4
cmp esi, 0x64
jne 0x406f19
add ebx, 0x204
nop dword [eax]
push 0
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x406ce3
push 0
push dword [ebp - 0x40c]
call fcn.004d7670
mov edx, ebx
add esp, 8
sub edx, eax
nop dword [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 0x202], cx
test cx, cx
jne 0x406cd0
push 1
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x406d20
push 1
push dword [ebp - 0x40c]
call fcn.004d7670
mov edx, ebx
add esp, 8
sub edx, eax
nop dword [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x406d10
push 2
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x406d9a
lea edi, [ebx - 0x200]
lea ecx, [edi - 2]
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406d40
mov eax, dword [0x783764]
mov dword [ecx], eax
mov eax, dword [0x783768]
push 2
push dword [ebp - 0x40c]
mov dword [ecx + 4], eax
call fcn.004d7670
mov edx, eax
add esp, 8
mov esi, edx
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406d70
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406d80
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 3
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x406e0a
lea ecx, [ebx - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406db1
mov eax, dword [0x783764]
mov dword [ecx], eax
mov eax, dword [0x783768]
push 3
push dword [ebp - 0x40c]
mov dword [ecx + 4], eax
call fcn.004d7670
mov edx, eax
add esp, 8
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406de0
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406df0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 4
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x406e8a
lea edi, [ebx - 0x200]
lea ecx, [edi - 2]
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406e30
mov eax, dword [0x783764]
mov dword [ecx], eax
mov eax, dword [0x783768]
push 4
push dword [ebp - 0x40c]
mov dword [ecx + 4], eax
call fcn.004d7670
mov edx, eax
add esp, 8
mov esi, edx
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406e60
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406e70
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 5
push dword [ebp - 0x40c]
call fcn.004d7250
add esp, 8
test eax, eax
jle 0x406efa
lea ecx, [ebx - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406ea1
mov eax, dword [0x783764]
mov dword [ecx], eax
mov eax, dword [0x783768]
push 5
push dword [ebp - 0x40c]
mov dword [ecx + 4], eax
call fcn.004d7670
mov edx, eax
add esp, 8
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406ed0
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406ee0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x40c]
add ebx, 0x404
call fcn.004d6c20
mov esi, eax
add esp, 4
cmp esi, 0x64
je 0x406ca0
cmp esi, 0x65
jne 0x406f3d
push dword [ebp - 0x40c]
call fcn.004d5f90
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x40c]
push edi
call fcn.004d5f90
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006a7b19
mov esp, ebp
pop ebp
ret